imageeditorpro
image editor plugin with simple, easy support for image editing using paints, text, filters, emoji and sticker like stories.
to start with this, we need to simply add the dependencies in the gradle file of our app module like this
installation
first, add image_editor_pro:
as a dependency in your pubspec.yaml file.
import
import 'package:image_editor_pro/image_editor_pro.dart';
ios
add the following keys to your info.plist file, located in <project root>/ios/runner/info.plist
:
nsphotolibraryusagedescription
– describe why your app needs permission for the photo library. this is called privacy – photo library usage description in the visual editor.nscamerausagedescription
– describe why your app needs access to the camera. this is called privacy – camera usage description in the visual editor.nsmicrophoneusagedescription
– describe why your app needs access to the microphone, if you intend to record videos. this is called privacy – microphone usage description in the visual editor.
or in text format add the key:
<key>nsphotolibraryusagedescription</key>
<string>used to demonstrate ima ge picker plugin</string>
<key>nscamerausagedescription</key>
<string>used to demonstrate im age picker plugin</string>
<key>nsmicrophoneusagedescription</key>
<string>used to capture audio for im age picker plugin</string>
android
no configuration required – the plugin should work out of the box.
add this function to your statefull widget check the example
future<void> getim ageditor() {
final geteditim age = navigator.push(context, materialpageroute(
builder: (context){
return im ageeditorpro(
appbarcolor: colors.blue,
bottombarcolor: colors.blue,
);
}
)).then((geteditima ge){
if(getediti mage != null){
setstate(() {
_im age = geteditima ge;
});
}
}).catcherror((er){print(er);});
}
Comments are closed.