/block4.dart Secret
Last active
October 28, 2020 01:07
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