Created
December 29, 2018 14:53
-
-
Save kishan2612/aaa0e01789c188b9f30da6c887af02ea to your computer and use it in GitHub Desktop.
layoutbuilder
This file contains 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 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