From 3b43baf229e4db8fe72bb7a7faa82773c8cca5b0 Mon Sep 17 00:00:00 2001 From: Cheryl Date: Thu, 11 May 2023 12:53:31 -0700 Subject: [PATCH] Fix analysis error --- lib/src/widgets/raw_editor.dart | 3 ++- lib/src/widgets/text_block.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index 7d60a051..b80aa1b2 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -325,6 +325,7 @@ class RawEditorState extends EditorState TextDirection get _textDirection => Directionality.of(context); + @override void insertContent(KeyboardInsertedContent content) {} /// Returns the [ContextMenuButtonItem]s representing the buttons in this @@ -1711,7 +1712,7 @@ class RawEditorState extends EditorState } class _Editor extends MultiChildRenderObjectWidget { - _Editor({ + const _Editor({ required Key key, required List children, required this.document, diff --git a/lib/src/widgets/text_block.dart b/lib/src/widgets/text_block.dart index b61ad9cf..f30ccea0 100644 --- a/lib/src/widgets/text_block.dart +++ b/lib/src/widgets/text_block.dart @@ -596,7 +596,7 @@ class RenderEditableTextBlock extends RenderEditableContainerBox } class _EditableBlock extends MultiChildRenderObjectWidget { - _EditableBlock( + const _EditableBlock( {required this.block, required this.textDirection, required this.padding, diff --git a/pubspec.yaml b/pubspec.yaml index 88c1e2b3..479b2115 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,7 +6,7 @@ homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ">=2.17.0 <4.0.0" flutter: ">=3.0.0" dependencies: