Browse Source

chore: replace 'checkbox' with StyleKey.checkbox

Lucas.Xu 2 years ago
parent
commit
364a8e6ad2

+ 1 - 1
frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/checkbox_text.dart

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