Browse Source

fix: conflict merge

Enzo Lizama 2 years ago
parent
commit
73a97fdbea

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

@@ -128,7 +128,7 @@ class _MyHomePageState extends State<MyHomePage> {
                 underscoreToItalic,
               ],
               selectionMenuItems: [
-                codeBlockMenuItem,
+                codeBlockItem,
                 teXBlockMenuItem,
               ],
             ),

+ 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, _, __) {