79 lines
2.1 KiB
Dart
79 lines
2.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:invoiceninja/routes.dart';
|
|
|
|
class CustomDrawer extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Drawer(
|
|
child: ListView(
|
|
children: <Widget>[
|
|
Container(
|
|
child: DrawerHeader(
|
|
child: Column(
|
|
children: <Widget>[
|
|
Expanded(
|
|
child: Center(
|
|
child: Text('Logo'),
|
|
),
|
|
),
|
|
Row(
|
|
children: <Widget>[
|
|
Expanded(
|
|
child: Text('Test'),
|
|
),
|
|
MaterialButton(
|
|
onPressed: () {
|
|
|
|
},
|
|
child: Text('Change'),
|
|
)
|
|
],
|
|
)
|
|
],
|
|
)),
|
|
color: Colors.white10,
|
|
),
|
|
ListTile(
|
|
leading: Icon(Icons.dashboard),
|
|
title: Text('Dashboard'),
|
|
onTap: () {
|
|
Navigator.of(context).popAndPushNamed(AppRoutes.dashboard);
|
|
},
|
|
),
|
|
/*
|
|
ListTile(
|
|
leading: Icon(Icons.people),
|
|
title: Text('Clients'),
|
|
onTap: () {
|
|
Navigator.of(context).pop();
|
|
Navigator.of(context).pushNamed(AppRoutes.clientScreen);
|
|
},
|
|
),
|
|
*/
|
|
ListTile(
|
|
leading: Icon(Icons.language),
|
|
title: Text('Products'),
|
|
onTap: () {
|
|
Navigator.of(context).popAndPushNamed(AppRoutes.products);
|
|
},
|
|
),
|
|
/*
|
|
ListTile(
|
|
leading: Icon(Icons.email),
|
|
title: Text('Invoices'),
|
|
onTap: () {},
|
|
),
|
|
*/
|
|
ListTile(
|
|
leading: Icon(Icons.power_settings_new),
|
|
title: Text('Log Out'),
|
|
onTap: () {
|
|
Navigator.of(context).popAndPushNamed(AppRoutes.login);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|