blob: b6ffd07ce8b1f7d0c3c77f0e8086fb68d4fe6b1a [file] [log] [blame]
import core.widgets;
import core.material;
widget Counter = Scaffold(
appBar: AppBar(title: Text(text: "Counter Demo")),
body: Center(
child: Column(
mainAxisAlignment: "center",
children: [
Text(text: 'You have pushed the button this many times:', textAlign: "center"),
Text(text: data.counter, style: {
fontSize: 36.0,
}),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: event "increment" { },
tooltip: "Increment",
child: Icon(icon: 0xE047, fontFamily: "MaterialIcons"),
),
);