fix: update checklist type option data (#1563)

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Nathan.fooo 2022-12-10 20:46:24 +08:00 committed by GitHub
parent 350c55e71d
commit d487820963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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),
),
],