Skip to content

Instantly share code, notes, and snippets.

@deepak-gehlot
Created July 11, 2018 11:47
Show Gist options
  • Save deepak-gehlot/38431e4a350f2a863f7e56ef0a747607 to your computer and use it in GitHub Desktop.
Save deepak-gehlot/38431e4a350f2a863f7e56ef0a747607 to your computer and use it in GitHub Desktop.
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton: FloatingActionButton(
backgroundColor: Colors.black,
child: const Icon(Icons.add),
onPressed: () {},
),
bottomNavigationBar: new BottomAppBar(
hasNotch: true,
color: Colors.indigo,
child: new Row(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
IconButton(
icon: Icon(
Icons.menu,
color: Colors.white,
),
onPressed: () {},
),
new Expanded(child: new SizedBox()),
IconButton(
icon: Icon(
Icons.search,
color: Colors.white,
),
onPressed: () {},
),
IconButton(
icon: Icon(
Icons.more_vert,
color: Colors.white,
),
onPressed: () {},
),
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment