Created
July 29, 2019 08:07
-
-
Save ipondroid/d33e2683eb0b0388deb7fc2efdd1a1a1 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 _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