You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/widgets/shared/app.drawer.dart

48 lines
1.1 KiB
Dart

import 'package:doctor_app_flutter/routes.dart';
import 'package:flutter/material.dart';
class AppDrawer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Drawer(
child: Column(
children: <Widget>[
AppBar(
title: Text('Hi form Elham!!'),
),
Divider(),
ListTile(
title: Text('My Schedule'),
leading: Icon(Icons.tab),
onTap: () {
drawerNavigator(context, MY_SCHEDULE);
},
),
Divider(),
ListTile(
title: Text('Settings'),
leading: Icon(Icons.settings),
),
Divider(),
ListTile(
title: Text('QR Reader'),
leading: Icon(Icons.photo),
),
Divider(),
ListTile(
title: Text('Log Out'),
leading: Icon(Icons.exit_to_app),
onTap: () {
},
)
],
),
);
}
drawerNavigator(context, routeName) {
Navigator.of(context).pushNamed(routeName);
}
}