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) { onUpdated: (updatedOption) {
context.read<ChecklistCellEditorBloc>().add( context.read<ChecklistCellEditorBloc>().add(
ChecklistCellEditorEvent.updateOption(widget.option.data), ChecklistCellEditorEvent.updateOption(updatedOption),
); );
}, },
showOptions: false, showOptions: false,

View File

@ -42,7 +42,7 @@ class _SliverChecklistPrograssBarDelegate
extends SliverPersistentHeaderDelegate { extends SliverPersistentHeaderDelegate {
_SliverChecklistPrograssBarDelegate(); _SliverChecklistPrograssBarDelegate();
double fixHeight = 54; double fixHeight = 60;
@override @override
Widget build( Widget build(
@ -69,7 +69,7 @@ class _SliverChecklistPrograssBarDelegate
}, },
), ),
Padding( Padding(
padding: const EdgeInsets.only(top: 10.0), padding: const EdgeInsets.only(top: 6.0),
child: ChecklistPrograssBar(percent: state.percent), child: ChecklistPrograssBar(percent: state.percent),
), ),
], ],