diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart index aa2674de21..d542902646 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart @@ -16,7 +16,7 @@ CharacterShortcutEvent formatGreaterToToggleList = CharacterShortcutEvent( handler: (editorState) async => await formatMarkdownSymbol( editorState, (node) => node.type != ToggleListBlockKeys.type, - (text, _) => text == _greater, + (_, text, __) => text == _greater, (_, node, delta) => toggleListBlockNode( delta: delta.compose(Delta()..delete(_greater.length)), ), diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock index bc276887b4..5ef5d52db6 100644 --- a/frontend/appflowy_flutter/pubspec.lock +++ b/frontend/appflowy_flutter/pubspec.lock @@ -53,10 +53,10 @@ packages: dependency: "direct main" description: name: appflowy_editor - sha256: "19c2567e23bbd8894243b2e57fa8436e3192c8dcb50c23499b6aea90a674a045" + sha256: "3ab567d8993ca06ea114c35bc38c07d2f0d7a5b00857f52d71fbe6a7f9d2ba7b" url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" appflowy_popover: dependency: "direct main" description: diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yaml index cdd6c4fcb3..ed82fa13d3 100644 --- a/frontend/appflowy_flutter/pubspec.yaml +++ b/frontend/appflowy_flutter/pubspec.yaml @@ -42,7 +42,7 @@ dependencies: git: url: https://github.com/AppFlowy-IO/appflowy-board.git ref: a183c57 - appflowy_editor: ^1.0.3 + appflowy_editor: ^1.0.4 # appflowy_editor: # git: # url: https://github.com/AppFlowy-IO/appflowy-editor.git