import 'package:flutter/material.dart'; import 'package:invoiceninja/routes.dart'; class Sidebar extends StatelessWidget { @override Widget build(BuildContext context) { return new Drawer( child: new ListView( children: [ new Container( child: new DrawerHeader( child: new Center( child: new Text('Logo'), ), ), color: Colors.white10, ), new ListTile( leading: new Icon(Icons.dashboard), title: new Text('Dashboard'), onTap: () { Navigator.of(context).popAndPushNamed(AppRoutes.dashboard); }, ), /* new ListTile( leading: new Icon(Icons.people), title: new Text('Clients'), onTap: () { Navigator.of(context).pop(); Navigator.of(context).pushNamed(AppRoutes.clientScreen); }, ), */ new ListTile( leading: new Icon(Icons.language), title: new Text('Products'), onTap: () { Navigator.of(context).popAndPushNamed(AppRoutes.products); }, ), /* new ListTile( leading: new Icon(Icons.email), title: new Text('Invoices'), onTap: () {}, ), */ new ListTile( leading: new Icon(Icons.power_settings_new), title: new Text('Log Out'), onTap: () { Navigator.of(context).popAndPushNamed(AppRoutes.login); }, ), ], ), ); } }