WebMay 28, 2024 · You pass in the specified width and height for the image you want and the plugin actually crops the original image. _imageFile = ImagePicker.pickImage (source: source, maxWidth: 200.0, maxHeight: 300.0); What you are asking for is another plugin to crop images after one has been selected and that would be outside the scope of the … WebSep 10, 2024 · Utils folder – will contain our utils.dart file where we will create reusable image picker and crop functions. 2. Import image_picker and image_cropper Packages. Second step – we need to import image_picker and image_cropper from pub.dev in our project. Then we need to place them in pubspec.yaml under dependencies:
[Solved]-image_picker crash in android app - Flutter App-Flutter
WebMay 3, 2024 · start the app use the plugin functionality (everything works fine) leave the app (eg. with home button or back button of your phone) start the app again MissingPluginExecption when trying to use the plugin function If I close the app and restart it everything works fine but for that special usecase it doesn't. WebMar 27, 2024 · if you want to crop an Image and not use Image_cropper. instead you can use the image package image: ^3.0.2. image_package you need to load the image and decode the image into a list, use copyCrop function to crop, and then encode it back Share Improve this answer Follow answered Aug 12, 2024 at 22:35 MarwanH 21 1 Add a … inion otps
dart - image_cropper crashing the app in flutter - Stack …
WebApr 28, 2024 · To follow up on this response - I had the same issue with image_cropper causing the android app to crash in release mode. I created a new flutter project and compared my android/app/build.gradle and android/build.gradle files with those in the new project. My build.gradle files were outdated and didn't mention kotlin at all. WebMay 14, 2024 · Flutter image cropper not showing image to be cropped. Ask Question Asked 2 years, 10 months ago. Modified 2 years, 10 months ago. Viewed 2k times 0 I … WebMar 16, 2024 · Image_picker still crashed my app as soon as I took the shot. My solution in the end was to use camera_camera 2.0.1 . It is a terrible library name, and it doesn't include compression, but the camera interface is nicer, and it works perfectly out of the box. inion jack flag wave