classCounterStateextendsState<Counter> {
int counter =0;
voidincrement() {
// Tells the Flutter framework that state has changed,// so the framework can run build() and update the display.setState(() {
counter++;
});
}
Widgetbuild(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.returnnewRow(
children:<Widget>[
newRaisedButton(
onPressed: increment,
child:newText('Increment'),
),
newText('Count: $counter'),
],
);
}
}

Unified app development

Flutter has the tools and libraries to help you easily
bring your ideas to life on iOS and Android.
If you don't have any mobile development experience, Flutter
is an easy and fast way to build beautiful mobile apps.
If you are an experienced iOS or Android developer,
you can use Flutter for your views and leverage much of your
existing Java/ObjC/Swift investment.