@override
Widget build(BuildContext context) {
return Scaffold(
// appBar: AppBar(
// title: Text("Sample App"),
// ),
body: new Column(
children: <Widget>[
Text(textToShow),
],
),
floatingActionButton: FloatingActionButton(
onPressed: _updateText,
tooltip: 'Update Text',
child: Icon(Icons.update),
),
);
}
![]()
@override
Widget build(BuildContext context) {
return Scaffold(
// appBar: AppBar(
// title: Text("Sample App"),
// ),
body: SafeArea(
child: new Column(
children: <Widget>[
Text(textToShow),
],
)),
floatingActionButton: FloatingActionButton(
onPressed: _updateText,
tooltip: 'Update Text',
child: Icon(Icons.update),
),
);
}
![]()