From d487820963b733f4466a0e96aed613ab960ff889 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Sat, 10 Dec 2022 20:46:24 +0800 Subject: [PATCH] fix: update checklist type option data (#1563) Co-authored-by: nathan --- .../widgets/cell/checklist_cell/checklist_cell_editor.dart | 2 +- .../widgets/cell/checklist_cell/checklist_prograss_bar.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_cell_editor.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_cell_editor.dart index 49d8ed01e3..f68ac9e687 100644 --- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_cell_editor.dart +++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_cell_editor.dart @@ -166,7 +166,7 @@ class _ChecklistOptionCellState extends State<_ChecklistOptionCell> { }, onUpdated: (updatedOption) { context.read().add( - ChecklistCellEditorEvent.updateOption(widget.option.data), + ChecklistCellEditorEvent.updateOption(updatedOption), ); }, showOptions: false, diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_prograss_bar.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_prograss_bar.dart index 57b4bfd599..2cbbf9e23c 100644 --- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_prograss_bar.dart +++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_prograss_bar.dart @@ -42,7 +42,7 @@ class _SliverChecklistPrograssBarDelegate extends SliverPersistentHeaderDelegate { _SliverChecklistPrograssBarDelegate(); - double fixHeight = 54; + double fixHeight = 60; @override Widget build( @@ -69,7 +69,7 @@ class _SliverChecklistPrograssBarDelegate }, ), Padding( - padding: const EdgeInsets.only(top: 10.0), + padding: const EdgeInsets.only(top: 6.0), child: ChecklistPrograssBar(percent: state.percent), ), ],