Browse Source

chore: fix compile error

Lucas.Xu 2 years ago
parent
commit
d146bb6481

+ 0 - 6
frontend/app_flowy/packages/appflowy_editor/example/assets/example.json

@@ -9,12 +9,6 @@
           "align": "center"
         }
       },
-      {
-        "type": "tex",
-        "attributes": {
-          "tex": "x = 2"
-        }
-      },
       {
         "type": "text",
         "attributes": { "subtype": "heading", "heading": "h1" },

+ 1 - 1
frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/tex_block_node_widget.dart

@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
 import 'package:flutter_math_fork/flutter_math.dart';
 
 SelectionMenuItem teXBlockMenuItem = SelectionMenuItem(
-  name: 'Tex',
+  name: () => 'Tex',
   icon: const Icon(Icons.text_fields_rounded),
   keywords: ['tex, latex, katex'],
   handler: (editorState, _, __) {

+ 1 - 1
frontend/app_flowy/packages/appflowy_editor/example/macos/Podfile.lock

@@ -24,7 +24,7 @@ EXTERNAL SOURCES:
     :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
 
 SPEC CHECKSUMS:
-  FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811
+  FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
   path_provider_macos: 3c0c3b4b0d4a76d2bf989a913c2de869c5641a19
   rich_clipboard_macos: 43364b66b9dc69d203eb8dd6d758e2d12e02723c
   url_launcher_macos: 597e05b8e514239626bcf4a850fcf9ef5c856ec3