From 230bdb2430dea033c7d75c19ed19d9e771a28cde Mon Sep 17 00:00:00 2001 From: Amjad Amireh Date: Mon, 15 Jun 2020 12:01:22 +0300 Subject: [PATCH] Modify Dr profile data dynamic size --- lib/screens/profile_screen.dart | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/lib/screens/profile_screen.dart b/lib/screens/profile_screen.dart index 88f9565a..f1c30add 100644 --- a/lib/screens/profile_screen.dart +++ b/lib/screens/profile_screen.dart @@ -37,16 +37,26 @@ class _ProfileScreenState extends State { appBarTitle: 'Profile', body: ListView(padding: EdgeInsets.zero, children: [ Container( - height: SizeConfig.heightMultiplier * 30, - child: DrawerHeader( - child: ProfileImageWidget( - url:doctorProfile.doctorImageURL, - //"https://p.kindpng.com/picc/s/404-4042774_profile-photo-circle-circle-profile-picture-png-transparent.png", - name: doctorProfile.doctorName,//"Dr. Chris evans", - des: doctorProfile.clinicDescription//"Director of medical records", + height:MediaQuery.of(context).size.height * 0.35, //SizeConfig.heightMultiplier * 35, + + child: Container( + + child: DrawerHeader( + + child: Container( + + child: ProfileImageWidget( + url:doctorProfile.doctorImageURL, + //"https://p.kindpng.com/picc/s/404-4042774_profile-photo-circle-circle-profile-picture-png-transparent.png", + name: doctorProfile.doctorName,//"Dr. Chris evans", + des: doctorProfile.clinicDescription//"Director of medical records", + ), + ), ), ), + ), + RoundedContainer( child: ListView( children: [