Created
November 25, 2018 16:49
-
-
Save mohak1712/de4a5fba853c51532c9dbc55b5af1670 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
class MaterialDesignPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Material Design", textDirection: TextDirection.ltr), | |
backgroundColor: Colors.green, | |
actions: <Widget>[ | |
IconButton(icon: Icon(Icons.search), onPressed: () {}), | |
IconButton( | |
icon: Icon(Icons.send), | |
onPressed: () {}, | |
), | |
], | |
), | |
bottomNavigationBar: BottomNavigationBar(items: [ | |
BottomNavigationBarItem( | |
icon: new Icon(Icons.home), | |
title: new Text('Home'), | |
), | |
BottomNavigationBarItem( | |
icon: new Icon(Icons.mail), | |
title: new Text('Messages'), | |
), | |
BottomNavigationBarItem( | |
title: Text('Profile'), | |
icon: Icon(Icons.person), | |
) | |
]), | |
floatingActionButton: FloatingActionButton( | |
onPressed: () {}, | |
backgroundColor: Colors.green, | |
child: Icon(Icons.edit), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment