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.
55 lines
1.7 KiB
Dart
55 lines
1.7 KiB
Dart
import 'package:doctor_app_flutter/widgets/shared/drawer_item_widget.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
// OWNER : Ibrahim albitar
|
|
// DATE : 06-04-2020
|
|
// DESCRIPTION : Custom App Drawer for app.
|
|
|
|
class AppDrawer extends StatefulWidget {
|
|
@override
|
|
_AppDrawerState createState() => _AppDrawerState();
|
|
}
|
|
|
|
class _AppDrawerState extends State<AppDrawer> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return
|
|
|
|
RoundedContainer(
|
|
Drawer(
|
|
child: ListView(
|
|
padding: EdgeInsets.zero,
|
|
children: <Widget>[
|
|
DrawerHeader(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: <Widget>[
|
|
CircleAvatar(
|
|
radius: 40,
|
|
backgroundImage: NetworkImage("https://p.kindpng.com/picc/s/404-4042774_profile-photo-circle-circle-profile-picture-png-transparent.png"),
|
|
backgroundColor: Colors.transparent,
|
|
),
|
|
Padding(padding: EdgeInsets.only(top: 10), child: Text("Dr. Chris evans", style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold , color: Colors.white), )),
|
|
Text("Director of medical records", style: TextStyle(fontSize: 14, fontWeight: FontWeight.normal, color: Colors.white),)
|
|
],
|
|
),
|
|
decoration: BoxDecoration(
|
|
color: Color(0x58434F)
|
|
),
|
|
),
|
|
DrawerItem()
|
|
])
|
|
),
|
|
margin: 0,
|
|
customCornerRaduis: true,
|
|
topRight: 30,
|
|
bottomRight: 30,
|
|
backgroundColor: Color(0xff58434F),
|
|
);
|
|
}
|
|
drawerNavigator(context, routeName) {
|
|
Navigator.of(context).pushNamed(routeName);
|
|
}
|
|
}
|