From 9307891b48cde60035d73909fb9c2308f75dac33 Mon Sep 17 00:00:00 2001 From: Marty Fuhry Date: Sun, 12 Feb 2023 15:13:47 -0500 Subject: [PATCH] made the whole profile photo a gesture detector --- .../home/ui/profile_drawer/profile_drawer_header.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart b/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart index a7dcf593a2..1a0a830602 100644 --- a/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart +++ b/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart @@ -130,15 +130,15 @@ class ProfileDrawerHeader extends HookConsumerWidget { mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Stack( + GestureDetector( + onTap: pickUserProfileImage, + child: Stack( clipBehavior: Clip.none, children: [ buildUserProfileImage(), Positioned( bottom: 0, right: -5, - child: GestureDetector( - onTap: pickUserProfileImage, child: Material( color: isDarkMode ? Colors.grey[900] : Colors.grey[100], elevation: 3, @@ -155,8 +155,8 @@ class ProfileDrawerHeader extends HookConsumerWidget { ), ), ), - ), - ], + ], + ), ), Text( "${authState.firstName} ${authState.lastName}",