Skip to content

Instantly share code, notes, and snippets.

@kishan2612
Created December 29, 2018 14:53
Show Gist options
  • Save kishan2612/aaa0e01789c188b9f30da6c887af02ea to your computer and use it in GitHub Desktop.
Save kishan2612/aaa0e01789c188b9f30da6c887af02ea to your computer and use it in GitHub Desktop.
layoutbuilder
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: activityContainer,
);
}
Widget activityContainer(BuildContext context, BoxConstraints constraint) {
final ThemeData _theme = Theme.of(context);
return Container(
child: Stack(
children: <Widget>[
_backView(_theme),
_frontView()],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment