Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created October 16, 2018 09:20
Show Gist options
  • Save Rahiche/3aa5aac571092facebf4ee09242197cf to your computer and use it in GitHub Desktop.
Save Rahiche/3aa5aac571092facebf4ee09242197cf to your computer and use it in GitHub Desktop.
Widget build(BuildContext context) {
media = MediaQuery.of(context).size;
Scaffold(
appBar: AppBar(),
drawer: media.width < 600
? Drawer(
child: Menu(),
)
:
,
body: Row(
children: <Widget>[
media.width > 600 ? Flexible(flex: 1, child: Menu()) : Container(),
Flexible(
flex: 3,
child: Center(
child: Text(
"Size ${media.width} * ${media.height}",
style: Theme.of(context).textTheme.title,
)),
),
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment