소스 검색

chore: replace 'checkbox' with StyleKey.checkbox

Lucas.Xu 2 년 전
부모
커밋
364a8e6ad2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/checkbox_text.dart

+ 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();
           },