浏览代码

made the whole profile photo a gesture detector

Marty Fuhry 2 年之前
父节点
当前提交
9307891b48
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart

+ 5 - 5
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}",