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/screens/profile_screen.dart

71 lines
2.2 KiB
Dart

import 'package:flutter/material.dart';
import '../config/size_config.dart';
import '../widgets/shared/app_scaffold_widget.dart';
import '../widgets/shared/drawer_item_widget.dart';
import '../widgets/shared/profile_image_widget.dart';
import '../widgets/shared/rounded_container_widget.dart';
class ProfileScreen extends StatefulWidget {
ProfileScreen({Key key, this.title}) : super(key: key);
final String title;
@override
_ProfileScreenState createState() => _ProfileScreenState();
}
class _ProfileScreenState extends State<ProfileScreen> {
@override
Widget build(BuildContext context) {
return AppScaffold(
appBarTitle: 'Profile',
body: ListView(padding: EdgeInsets.zero, children: <Widget>[
Container(
height: SizeConfig.heightMultiplier * 30,
child: DrawerHeader(
child: ProfileImageWidget(
url:
"https://p.kindpng.com/picc/s/404-4042774_profile-photo-circle-circle-profile-picture-png-transparent.png",
name: "Dr. Chris evans",
des: "Director of medical records",
),
),
),
RoundedContainer(
child: ListView(
children: <Widget>[
DrawerItem(
"Gender",
Icons.person_pin,
color: Colors.black,
subTitle: "Male",
),
DrawerItem(
"Clinic",
Icons.build,
color: Colors.black,
subTitle: "Neurology Clinic",
),
DrawerItem(
"Hospital",
Icons.local_hospital,
color: Colors.black,
subTitle: "Al-Takkassussi",
),
DrawerItem(
"Speciality",
Icons.crop_square,
color: Colors.black,
subTitle: "being great",
),
],
),
width: SizeConfig.screenWidth * 0.70,
height: SizeConfig.screenHeight * 0.40,
),
]));
}
}