chore: replace 'checkbox' with StyleKey.checkbox

This commit is contained in:
Lucas.Xu 2022-08-08 22:24:52 +08:00
parent 6dcf3b3fa7
commit 364a8e6ad2

View File

@ -77,7 +77,7 @@ class _CheckboxNodeWidgetState extends State<CheckboxNodeWidget>
debugPrint('[Checkbox] onTap...');
TransactionBuilder(widget.editorState)
..updateNode(widget.textNode, {
'checkbox': !check,
StyleKey.checkbox: !check,
})
..commit();
},