Support android ios, use the native way to flip, crop, rotate pictures.
The version of readme pub and github may be inconsistent, please refer to github.
Import
import 'package:image_editor/image_editor.dart';
Method list:
ImageEditor.editImage();
ImageEditor.editFileImage();
ImageEditor.editFileImageAndGetFile();
ImageEditor.editImageAndGetFile();
Name | Description |
---|---|
image | dart.typed_data.Uint8List |
file | dart.io.File |
imageEditorOption | flutter_image_editor.ImageEditorOption |
final editorOption = ImageEditorOption();
editorOption.addOption(FlipOption());
editorOption.addOption(ClipOption());
editorOption.addOption(RotateOption());
editorOption.outputFormat = OutputFormat.png(88);
FlipOption(horizontal:true, vertical:false);
ClipOption(x:0, y:0, width:1920, height:1920);
RotateOption(degree: 180);
var outputFormat = OutputFormat.png();
var outputFormat = OutputFormat.jpeg(95);
..../image_editor-0.1.4/ios/Classes/FlutterImageEditorPlugin.m:2:9: 'image_editor/image_editor-Swift.h' file not found
See #10
MIT Style.