Skip to content

Instantly share code, notes, and snippets.

@ipondroid
Created July 29, 2019 08:07
Show Gist options
  • Save ipondroid/d33e2683eb0b0388deb7fc2efdd1a1a1 to your computer and use it in GitHub Desktop.
Save ipondroid/d33e2683eb0b0388deb7fc2efdd1a1a1 to your computer and use it in GitHub Desktop.
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('BottomAppBar demo'),
),
body: Center(
child: Text('body'),
),
bottomNavigationBar: BottomAppBar(
child: Container(
color: Colors.yellow,
height: 50.0,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Text('This is Bottom'),
Icon(Icons.arrow_downward),
]
),
),
),
floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
floatingActionButton: FloatingActionButton(
child: Icon(Icons.thumb_up),
onPressed: null,
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment