Skip to content

Instantly share code, notes, and snippets.

@weverb2
Last active June 15, 2018 15:32
Show Gist options
  • Save weverb2/9a899aa44aed4af8558d0ac2a8286ac3 to your computer and use it in GitHub Desktop.
Save weverb2/9a899aa44aed4af8558d0ac2a8286ac3 to your computer and use it in GitHub Desktop.
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
String platform = Theme.of(context).platform.toString();
return new Scaffold(
appBar: new AppBar(
title: new Text(widget.title),
),
body: new Center(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text('You\'re running the app on $platform!'),
],
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment