Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class AppDrawer extends StatefulWidget {
- @override
- State<StatefulWidget> createState() => new AppDrawerState();
- }
- class AppDrawerState extends State<AppDrawer> {
- @override
- Widget build(BuildContext context) => new Container(
- color: Colors.white,
- child: new Column(mainAxisSize: MainAxisSize.max, children: <Widget>[
- new UserAccountsDrawerHeader(
- accountName: new Text('Zach White'),
- accountEmail: new Text('zachwhite@gmail.com'),
- currentAccountPicture: new CircleAvatar(
- backgroundColor: Theme.of(context).accentColor,
- child: new Text(
- 'ZW',
- style: new TextStyle(color: Colors.white, fontSize: 30.0),
- ))),
- new ListTile(
- onTap: () {},
- leading: const Icon(Icons.view_day),
- title: const Text('Daily'),
- selected: true),
- new ListTile(
- onTap: () {},
- leading: const Icon(Icons.account_balance),
- title: const Text('Monthly')),
- new ListTile(
- onTap: () {},
- leading: const Icon(Icons.shop),
- title: const Text('Vendor')),
- new ListTile(
- onTap: () {},
- leading: const Icon(Icons.widgets),
- title: const Text('Stock')),
- new ListTile(
- onTap: () {},
- leading: const Icon(Icons.widgets),
- title: const Text('Uncleared')),
- new ListTile(
- onTap: () {},
- leading: const Icon(Icons.widgets),
- title: const Text('Unpaid'))
- ]));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement