Browse Source

fix: update checklist type option data (#1563)

Co-authored-by: nathan <[email protected]>
Nathan.fooo 2 years ago
parent
commit
d487820963

+ 1 - 1
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,

+ 2 - 2
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),
               ),
             ],