Skip to content

Instantly share code, notes, and snippets.

@wilburx9
Created April 2, 2018 10:53
Show Gist options
  • Save wilburx9/4b64b8465ca41a4b9f7d18b729f618a9 to your computer and use it in GitHub Desktop.
Save wilburx9/4b64b8465ca41a4b9f7d18b729f618a9 to your computer and use it in GitHub Desktop.
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return new Scaffold(
appBar: new AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: new Text(widget.title),
),
body: new Container(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment