diff --git a/flutter_quill_extensions/lib/src/editor/image/image_embed.dart b/flutter_quill_extensions/lib/src/editor/image/image_embed.dart index 3bd39d77d..5e6985541 100644 --- a/flutter_quill_extensions/lib/src/editor/image/image_embed.dart +++ b/flutter_quill_extensions/lib/src/editor/image/image_embed.dart @@ -54,7 +54,7 @@ class QuillEditorImageEmbedBuilder extends EmbedBuilder { QuillSharedExtensionsConfigurations.get(context: context) .imageSaverService; return GestureDetector( - onTap: () async { + onTap: () { final onImageClicked = configurations.onImageClicked; if (onImageClicked != null) { onImageClicked(imageSource); diff --git a/flutter_quill_extensions/lib/src/editor/image/image_menu.dart b/flutter_quill_extensions/lib/src/editor/image/image_menu.dart index afd517cc6..e04f17627 100644 --- a/flutter_quill_extensions/lib/src/editor/image/image_menu.dart +++ b/flutter_quill_extensions/lib/src/editor/image/image_menu.dart @@ -97,7 +97,7 @@ class ImageOptionsMenu extends StatelessWidget { getImageStyleString(controller), ); - final imageBytes = await loadImageBytesFromImageProviders(); + final imageBytes = await _loadImageBytesFromImageProvider(); if (imageBytes != null) { ClipboardServiceProvider.instance .copyImageToClipboard(imageBytes); @@ -201,7 +201,7 @@ class ImageOptionsMenu extends StatelessWidget { // TODO: This will load the image again, in case it was network image // then it will send a GET request each time to load the image. - Future loadImageBytesFromImageProviders() async { + Future _loadImageBytesFromImageProvider() async { final stream = imageProvider.resolve(ImageConfiguration.empty); final completer = Completer();