Skip to content

Instantly share code, notes, and snippets.

@ponnamkarthik
Last active October 28, 2020 01:07
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