Created
December 18, 2019 00:57
-
-
Save azamsharp/2fdcd13a2c2e7d78a8214dc63f7bd0b8 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
void _showCamera() async { | |
final cameras = await availableCameras(); | |
final camera = cameras.first; | |
final result = await Navigator.push( | |
context, | |
MaterialPageRoute( | |
builder: (context) => TakePicturePage(camera: camera))); | |
setState(() { | |
_path = result; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment