Run the application on an Android phone. Selecting “Take photo” will open your camera. Finally, the image clicked will be displayed in the ImageView. Selecting “Choose from Gallery” will open your gallery (note that the image captured earlier has been added to the phone gallery).
Read moreHow do you open the camera on flutter?
Display the picture with an Image widget.
Read moreHow do I open gallery in flutter?
Adding an Image Picker in a Flutter App – Pick images using Camera and Gallery / Photos
Read moreWhat does getApplicationDocumentsDirectory return?
getApplicationDocumentsDirectory(): Gives path to the directory where Application can place it’s private files, Files only get wiped out when application itself removed. iOS – NSDocumentsDirectory API. Android – returns AppData directory .
Read moreHow do you get the current directory in Flutter?
Directory getCurrentDirectory() => _Directory. current; Flutter.
Read moreWhat is getApplicationDocumentsDirectory Flutter?
getApplicationDocumentsDirectory function Null safety Path to a directory where the application may place data that is user-generated, or that cannot otherwise be recreated by your application .
Read moreHow do I access storage on flutter?
Add to your pubspec:
Read more