Skip to content

Commit

Permalink
chore: correct name of _loadImageBytesFromImageProvider()
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Sep 16, 2024
1 parent f7c3589 commit 9743d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions flutter_quill_extensions/lib/src/editor/image/image_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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<Uint8List?> loadImageBytesFromImageProviders() async {
Future<Uint8List?> _loadImageBytesFromImageProvider() async {
final stream = imageProvider.resolve(ImageConfiguration.empty);
final completer = Completer<ui.Image>();

Expand Down

0 comments on commit 9743d47

Please sign in to comment.