-
Notifications
You must be signed in to change notification settings - Fork 0
/
drawer_header.dart
53 lines (48 loc) · 1.33 KB
/
drawer_header.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import 'package:flutter/material.dart';
class MyHeaderDrawer extends StatefulWidget {
@override
_MyHeaderDrawerState createState() => _MyHeaderDrawerState();
}
class _MyHeaderDrawerState extends State<MyHeaderDrawer> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.purple[900],
width: double.maxFinite,
height: 250,
padding: EdgeInsets.only(top: 20.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
margin: EdgeInsets.only(top:40),
height: 90,
decoration: BoxDecoration(
shape: BoxShape.circle,
image: DecorationImage(
image: AssetImage("assests/images/dr.jpg"),
),
),
),
SizedBox(
height: 10.0,
),
Text(
"Dr. Ankit Madharia",
style: TextStyle(color: Colors.white, fontSize: 20),
),
SizedBox(
height: 10.0,
),
Text(
"M.S. Orthopedician",
style: TextStyle(
color: Colors.grey[200],
fontSize: 14,
),
),
],
),
);
}
}