From c435e01d3274b27ff94c49cb80938cdaa87e1297 Mon Sep 17 00:00:00 2001 From: Ellet Date: Mon, 22 Jan 2024 16:35:40 +0300 Subject: [PATCH] Fix anlysis issue --- flutter_quill_extensions/lib/utils/quill_image_utils.dart | 3 --- flutter_quill_extensions/pubspec.yaml | 4 ++-- lib/src/widgets/toolbar/buttons/link_style_button.dart | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/flutter_quill_extensions/lib/utils/quill_image_utils.dart b/flutter_quill_extensions/lib/utils/quill_image_utils.dart index e0e85b1d..43549710 100644 --- a/flutter_quill_extensions/lib/utils/quill_image_utils.dart +++ b/flutter_quill_extensions/lib/utils/quill_image_utils.dart @@ -199,9 +199,6 @@ class QuillImageUtilities { final images = []; for (final item in document.toDelta().toJson()) { - if (item is! Map) { - return []; - } if (!item.containsKey(Operation.insertKey)) { return []; } diff --git a/flutter_quill_extensions/pubspec.yaml b/flutter_quill_extensions/pubspec.yaml index 2178b22f..1baa33f0 100644 --- a/flutter_quill_extensions/pubspec.yaml +++ b/flutter_quill_extensions/pubspec.yaml @@ -35,7 +35,7 @@ dependencies: universal_html: ^2.2.4 cross_file: ^0.3.3+6 - flutter_quill: ^9.2.1 + flutter_quill: ^9.2.10 photo_view: ^0.14.0 # Plugins @@ -43,7 +43,7 @@ dependencies: youtube_player_flutter: ^8.1.2 url_launcher: ^6.2.1 super_clipboard: ^0.8.4 - gal: ^2.2.0 + gal: ^2.2.2 gal_linux: ^0.0.1 image_picker: ^1.0.4 diff --git a/lib/src/widgets/toolbar/buttons/link_style_button.dart b/lib/src/widgets/toolbar/buttons/link_style_button.dart index 0665606c..dfa22817 100644 --- a/lib/src/widgets/toolbar/buttons/link_style_button.dart +++ b/lib/src/widgets/toolbar/buttons/link_style_button.dart @@ -143,8 +143,6 @@ class QuillToolbarLinkStyleButtonState } Future _openLinkDialog(BuildContext context) async { - // TODO: Add a custom call back to customize this just like in the search dialog - // button final value = await showDialog<_TextLink>( context: context, barrierColor: dialogBarrierColor,