Skip to content

MissingPluginException memoryToMemory for web #67

Open

Description

@tk2232

It seems that no native code has been implemented for web.

I got following exception:

MissingPluginException(No implementation found for method memoryToMemory on channel top.kikt/flutter_image_editor)

Here is my code

    var action = state.editAction;

    ///crop rect base on raw image
    final Rect? rect = state.getCropRect();
    final rotateAngle = action?.rotateAngle.toInt();
    final flipHorizontal = action?.flipY;
    final flipVertical = action?.flipX;
    final img = state.rawImageData;

    ImageEditorOption option = ImageEditorOption();

    if (action!.needCrop) option.addOption(ClipOption.fromRect(rect!));

    if (action.needFlip)
      option.addOption(
          FlipOption(horizontal: flipHorizontal!, vertical: flipVertical!));

    if (action.hasRotateAngle) option.addOption(RotateOption(rotateAngle!));
    option.outputFormat = OutputFormat.png(88);

    final result = await ImageEditor.editImage(
      image: img,
      imageEditorOption: option,
    );

    return result;
  }

Activity

  1. changed the title [-]MissingPluginException memoryToMemory[/-] [+]MissingPluginException memoryToMemory for web[/+] on Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions