Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: update checklist type option data (#1563)

Nathan.foood487820963b7
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<ChecklistCellEditorBloc>().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),
),
],