diff --git a/lib/widgets/patients/profile/profile-welcome-widget.dart b/lib/widgets/patients/profile/profile-welcome-widget.dart index ce05b83e..ac61f838 100644 --- a/lib/widgets/patients/profile/profile-welcome-widget.dart +++ b/lib/widgets/patients/profile/profile-welcome-widget.dart @@ -62,20 +62,24 @@ final double height; mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.end, children: [ - Container( - decoration: BoxDecoration( - color: Theme.of(context).backgroundColor, - borderRadius: BorderRadius.all( - Radius.circular(10.0), + + CircleAvatar( + + // radius: (52) + child: ClipRRect( + borderRadius:BorderRadius.circular(10), + + child: Image.network( + authProvider + .doctorProfile.doctorImageURL, + fit: BoxFit.fill, + width: 70, + height: 60, ), ), - height: 50, - width: 60, - child: Image.network( - authProvider.doctorProfile.doctorImageURL, -// fit: BoxFit.fill, - ), - ), + backgroundColor: Colors.transparent, + ) + ], ), ), diff --git a/lib/widgets/shared/app_drawer_widget.dart b/lib/widgets/shared/app_drawer_widget.dart index 2d0812d4..a29d764e 100644 --- a/lib/widgets/shared/app_drawer_widget.dart +++ b/lib/widgets/shared/app_drawer_widget.dart @@ -83,11 +83,21 @@ class _AppDrawerState extends State { children: [ authProvider.doctorProfile != null ? CircleAvatar( - radius: SizeConfig.imageSizeMultiplier * 12, - backgroundImage: NetworkImage( - authProvider.doctorProfile.doctorImageURL), - backgroundColor: Colors.white, - ) + radius: + SizeConfig.imageSizeMultiplier * 12, + // radius: (52) + child: ClipRRect( + borderRadius:BorderRadius.circular(50), + + child: Image.network( + authProvider + .doctorProfile.doctorImageURL, + fit: BoxFit.fill, + width: 700, + ), + ), + backgroundColor: Colors.transparent, + ) : SizedBox(), authProvider.doctorProfile != null ? Padding( diff --git a/lib/widgets/shared/profile_image_widget.dart b/lib/widgets/shared/profile_image_widget.dart index db22a13a..3db93f9d 100644 --- a/lib/widgets/shared/profile_image_widget.dart +++ b/lib/widgets/shared/profile_image_widget.dart @@ -34,11 +34,21 @@ class ProfileImageWidget extends StatelessWidget { Container( height: height, width: width, - child: CircleAvatar( - radius: SizeConfig.imageSizeMultiplier * 12, - backgroundImage: NetworkImage(url), + child:CircleAvatar( + radius: + SizeConfig.imageSizeMultiplier * 12, + // radius: (52) + child: ClipRRect( + borderRadius:BorderRadius.circular(50), + + child: Image.network( + url, + fit: BoxFit.fill, + width: 700, + ), + ), backgroundColor: Colors.transparent, - ), + ) ), name == null || des == null ? SizedBox()