Skip to content

Instantly share code, notes, and snippets.

@redbluenat
Last active March 24, 2019 21:36
Show Gist options
  • Save redbluenat/88c628655029ded3d83119257feee920 to your computer and use it in GitHub Desktop.
Save redbluenat/88c628655029ded3d83119257feee920 to your computer and use it in GitHub Desktop.
Widget build(BuildContext context) {
return Scaffold(
key: scaffoldKey,
body: Center(
child: SingleChildScrollView(
padding: const EdgeInsets.all(8.0),
child: Column(
children: <Widget>[
Center(
child: showCamera
? Container(
height: 290,
child: Padding(
padding: const EdgeInsets.only(top: 5),
child: Center(child: cameraPreviewWidget()),
),
)
: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
imagePreviewWidget(),
editCaptureControlRowWidget(),
]),
),
showCamera ? captureControlRowWidget() : Container(),
cameraOptionsWidget(),
beerInfoInputsWidget()
],
),
)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment