Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The picture turns white with coloroption #60

Open
liyingping opened this issue Mar 9, 2021 · 1 comment
Open

The picture turns white with coloroption #60

liyingping opened this issue Mar 9, 2021 · 1 comment

Comments

@liyingping
Copy link

final ImageEditorOption option = ImageEditorOption();
ColorOption coloroption = ColorOption.brightness(action.payload);
option.addOption(coloroption);
Uint8List result = await ImageEditor.editFileImage(
file: File(mBean.path),
imageEditorOption: option,
);

Then load new Image:

ExtendedImage.memory(result ,
fit: BoxFit.contain,
mode: ExtendedImageMode.editor,
extendedImageEditorKey: editorKey,
initEditorConfigHandler: (mstate) {
return EditorConfig(
maxScale: 8.0,
cropRectPadding: EdgeInsets.all(20.0),
hitTestSize: 20.0,
cropAspectRatio: CropAspectRatios.ratio4_3);
})

The new picture is white

@CaiJingLong
Copy link
Member

So, what do you want to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants