Advertisement
moseskarunia

Untitled

Mar 22nd, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.68 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class AppDrawer extends StatefulWidget {
  4.   @override
  5.   State<StatefulWidget> createState() => new AppDrawerState();
  6. }
  7.  
  8. class AppDrawerState extends State<AppDrawer> {
  9.   @override
  10.   Widget build(BuildContext context) => new Container(
  11.       color: Colors.white,
  12.       child: new Column(mainAxisSize: MainAxisSize.max, children: <Widget>[
  13.         new UserAccountsDrawerHeader(
  14.             accountName: new Text('Zach White'),
  15.             accountEmail: new Text('zachwhite@gmail.com'),
  16.             currentAccountPicture: new CircleAvatar(
  17.                 backgroundColor: Theme.of(context).accentColor,
  18.                 child: new Text(
  19.                   'ZW',
  20.                   style: new TextStyle(color: Colors.white, fontSize: 30.0),
  21.                 ))),
  22.         new ListTile(
  23.             onTap: () {},
  24.             leading: const Icon(Icons.view_day),
  25.             title: const Text('Daily'),
  26.             selected: true),
  27.         new ListTile(
  28.             onTap: () {},
  29.             leading: const Icon(Icons.account_balance),
  30.             title: const Text('Monthly')),
  31.         new ListTile(
  32.             onTap: () {},
  33.             leading: const Icon(Icons.shop),
  34.             title: const Text('Vendor')),
  35.         new ListTile(
  36.             onTap: () {},
  37.             leading: const Icon(Icons.widgets),
  38.             title: const Text('Stock')),
  39.         new ListTile(
  40.             onTap: () {},
  41.             leading: const Icon(Icons.widgets),
  42.             title: const Text('Uncleared')),
  43.         new ListTile(
  44.             onTap: () {},
  45.             leading: const Icon(Icons.widgets),
  46.             title: const Text('Unpaid'))
  47.       ]));
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement