Because image_editor_pro >=1.0.7 depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0, image_editor_pro >=1.0.7 is forbidden. code example
Example: flutter image editor
Future<void> getimageditor() {
final geteditimage = Navigator.push(context, MaterialPageRoute(
builder: (context){
return ImageEditorPro(
appBarColor: Colors.blue,
bottomBarColor: Colors.blue,
);
}
)).then((geteditimage){
if(geteditimage != null){
setState(() {
_image = geteditimage;
});
}
}).catchError((er){print(er);});
}