Created
June 2, 2018 16:27
-
-
Save burhanrashid52/c6d98e219aa1a61b3ac136b8f93d40bc 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
import 'package:flutter/material.dart'; | |
void main() => runApp(new MaterialApp( | |
home: new Scaffold( | |
backgroundColor: Colors.yellowAccent, | |
appBar: new AppBar( | |
title: new Text("My Title"), | |
actions: <Widget>[ | |
new IconButton( | |
icon: new Icon(Icons.shopping_cart), | |
onPressed: () {}, | |
), | |
new IconButton( | |
icon: new Icon(Icons.monetization_on), | |
onPressed: () {}, | |
) | |
], | |
), | |
drawer: new Drawer( | |
child: new ListView( | |
children: <Widget>[ | |
new DrawerHeader( | |
child: new Text("Drawer Header"), | |
decoration: new BoxDecoration( | |
color: Colors.blue, | |
), | |
), | |
new Text("Item 1"), | |
new Text("Item 2"), | |
new Text("Item 3"), | |
new Text("Item 4"), | |
new Text("Item 5"), | |
new Text("Item 6"), | |
], | |
), | |
), | |
), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment