diff --git a/.github/workflows/fleather.yml b/.github/workflows/fleather.yml index 10ddcf4b..53273b93 100644 --- a/.github/workflows/fleather.yml +++ b/.github/workflows/fleather.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.10.0" + flutter-version: "3.13.0" cache: true # Manually Update this `key` cache-key: "20230512" diff --git a/packages/fleather/lib/src/widgets/editor.dart b/packages/fleather/lib/src/widgets/editor.dart index 94c928f3..517e8eb7 100644 --- a/packages/fleather/lib/src/widgets/editor.dart +++ b/packages/fleather/lib/src/widgets/editor.dart @@ -1624,19 +1624,24 @@ class RawEditorState extends EditorState @override List get contextMenuButtonItems { return EditableText.getEditableButtonItems( - clipboardStatus: clipboardStatus?.value, - onCopy: copyEnabled - ? () => copySelection(SelectionChangedCause.toolbar) - : null, - onCut: - cutEnabled ? () => cutSelection(SelectionChangedCause.toolbar) : null, - onPaste: - pasteEnabled ? () => pasteText(SelectionChangedCause.toolbar) : null, - onSelectAll: selectAllEnabled - ? () => selectAll(SelectionChangedCause.toolbar) - : null, - ); - } + clipboardStatus: clipboardStatus?.value, + onCopy: copyEnabled + ? () => copySelection(SelectionChangedCause.toolbar) + : null, + onCut: cutEnabled + ? () => cutSelection(SelectionChangedCause.toolbar) + : null, + onPaste: pasteEnabled + ? () => pasteText(SelectionChangedCause.toolbar) + : null, + onSelectAll: selectAllEnabled + ? () => selectAll(SelectionChangedCause.toolbar) + : null, + onLiveTextInput: null); + } + + @override + bool liveTextInputEnabled = false; } class _Editor extends MultiChildRenderObjectWidget {