made the whole profile photo a gesture detector
This commit is contained in:
@@ -130,15 +130,15 @@ class ProfileDrawerHeader extends HookConsumerWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Stack(
|
GestureDetector(
|
||||||
|
onTap: pickUserProfileImage,
|
||||||
|
child: Stack(
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
children: [
|
children: [
|
||||||
buildUserProfileImage(),
|
buildUserProfileImage(),
|
||||||
Positioned(
|
Positioned(
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
right: -5,
|
right: -5,
|
||||||
child: GestureDetector(
|
|
||||||
onTap: pickUserProfileImage,
|
|
||||||
child: Material(
|
child: Material(
|
||||||
color: isDarkMode ? Colors.grey[900] : Colors.grey[100],
|
color: isDarkMode ? Colors.grey[900] : Colors.grey[100],
|
||||||
elevation: 3,
|
elevation: 3,
|
||||||
@@ -155,9 +155,9 @@ class ProfileDrawerHeader extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Text(
|
Text(
|
||||||
"${authState.firstName} ${authState.lastName}",
|
"${authState.firstName} ${authState.lastName}",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
Reference in New Issue
Block a user