flutter_image_editor icon indicating copy to clipboard operation
flutter_image_editor copied to clipboard

The picture turns white with coloroption

Open adflowsdk opened this issue 4 years ago • 1 comments

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

adflowsdk avatar Mar 09 '21 09:03 adflowsdk

So, what do you want to do?

CaiJingLong avatar Apr 20 '21 08:04 CaiJingLong