Flutter ImagePicker choose from gallery keep returns null
I’m using the ImagePIcker library in Flutter to retrieve image from user’s phone’s gallery. However the result of selection is always null. This only happens when I’m using ImageSource.gallery, it works fine on ImageSource.camera.
In Flutter project When I add image_picker and run ./android>./gredlew build I’m getting errors
To reproduce my probbem
1/ create sample flutter project
flutter create Test
2/ in the project folder
cd android
./gradlew build --stacktrace
Ok
3/ Add in pubscpec.yaml image_picker: ^1.1.2
4/ Run again
cd android
./gradlew build --stacktrace
The ImagePIcker is not working in my Flutter app
I used image_picker package in my project. But it is not working. I picked an image, but the image is not showing in the container. There is no issue in the code, but after I picked an image, only Error message is printing. Pls look at my code and please guide me the right path that how I can solve. Below is my code from 2 separate files. I want the photo to be shown after picked an image.
Take face picture in a circle area flutter
This is not a programming question but rather a general one.