Bläddra i källkod

chore: fix flutter analyze

Lucas.Xu 2 år sedan
förälder
incheckning
c127fd28b8

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

@@ -83,7 +83,6 @@ class _CheckboxNodeWidgetState extends State<CheckboxNodeWidget>
         children: [
           GestureDetector(
             key: iconKey,
-            child: icon,
             behavior: HitTestBehavior.opaque,
             onTap: () async {
               await widget.editorState.formatTextToCheckbox(
@@ -92,6 +91,7 @@ class _CheckboxNodeWidgetState extends State<CheckboxNodeWidget>
                 textNode: widget.textNode,
               );
             },
+            child: icon,
           ),
           Flexible(
             child: FlowyRichText(