Created
December 17, 2019 21:39
-
-
Save azamsharp/c48ce14b0553a0f84ad239cd3eb2a455 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
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: SafeArea( | |
child: Column(children: <Widget>[ | |
_path == null ? Image.asset("images/place-holder.png") : | |
Image.file(File(_path)) | |
, | |
FlatButton( | |
child: Text("Take Picture", style: TextStyle(color: Colors.white)), | |
color: Colors.green, | |
onPressed: () { | |
_showOptions(context); | |
}, | |
) | |
]), | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment