-
-
Save ponnamkarthik/bdb9e032984cb51e8c003569b40119f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File _cameraImage; | |
final picker = ImagePicker(); | |
// This funcion will helps you to pick and Image from Camera | |
_pickImageFromCamera() async { | |
PickedFile pickedFile = await picker.getImage(source: ImageSource.camera, imageQuality: 50); | |
File image = File(pickedFile.path); | |
setState(() { | |
_cameraImage = image; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment