From 0b153918686fe59ebbaa4792ceed9d0a2662bade Mon Sep 17 00:00:00 2001 From: ashrafzarkanisala Date: Wed, 23 Oct 2024 11:56:48 +0300 Subject: [PATCH] push logout dialog design --- lib/utils/user_drop_down_menu.dart | 77 ++++++++++++++++++------------ 1 file changed, 46 insertions(+), 31 deletions(-) diff --git a/lib/utils/user_drop_down_menu.dart b/lib/utils/user_drop_down_menu.dart index dab01fd8..3a0c4194 100644 --- a/lib/utils/user_drop_down_menu.dart +++ b/lib/utils/user_drop_down_menu.dart @@ -104,20 +104,20 @@ class _UserDropdownMenuState extends State { return AlertDialog( alignment: Alignment.center, content: SizedBox( - height: 250, - width: 500, + height: 200, + width: 400, child: Padding( - padding: const EdgeInsets.all(40), + padding: const EdgeInsets.only(top: 24, left: 24, right: 24), child: Column( mainAxisAlignment: MainAxisAlignment.start, children: [ - SvgPicture.asset( + Image.asset( Assets.blackLogo, height: 40, width: 200, ), Padding( - padding: const EdgeInsets.only(top: 8.0), + padding: const EdgeInsets.only(top: 16), child: Text( 'Log out of your Syncrow account', style: Theme.of(context).textTheme.bodyMedium!.copyWith( @@ -127,35 +127,50 @@ class _UserDropdownMenuState extends State { ), ), ), - ListTile( - leading: SizedBox.square( - dimension: 80, - child: CircleAvatar( - backgroundColor: ColorsManager.whiteColors, - child: SizedBox.square( - dimension: 78, - child: SvgPicture.asset( - Assets.logoGrey, - fit: BoxFit.fitHeight, - height: 80, + const SizedBox( + height: 16, + ), + Row( + children: [ + SizedBox.square( + dimension: 80, + child: CircleAvatar( + backgroundColor: ColorsManager.whiteColors, + child: SizedBox.square( + dimension: 78, + child: SvgPicture.asset( + Assets.logoGrey, + fit: BoxFit.fitHeight, + height: 80, + ), ), ), ), - ), - title: Text( - '${widget.user?.firstName ?? ''} ${widget.user?.lastName}', - style: Theme.of(context).textTheme.titleMedium!.copyWith( - color: Colors.black, - fontWeight: FontWeight.bold, - fontSize: 20, - ), - ), - subtitle: Text( - ' ${widget.user?.email}', - style: Theme.of(context).textTheme.bodySmall!.copyWith( - color: Colors.black, - ), - ), + const SizedBox( + width: 16, + ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '${widget.user?.firstName ?? ''} ${widget.user?.lastName}', + style: Theme.of(context).textTheme.titleMedium!.copyWith( + color: Colors.black, + fontWeight: FontWeight.bold, + fontSize: 20, + ), + ), + Text( + ' ${widget.user?.email}', + style: Theme.of(context).textTheme.bodySmall!.copyWith( + color: Colors.black, + ), + ), + ], + ), + ), + ], ), ], ),