Created
July 11, 2018 11:47
-
-
Save deepak-gehlot/38431e4a350f2a863f7e56ef0a747607 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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