From 28b94bda8a4f3e90f835530af9d7c08ab17a7fa1 Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Wed, 22 May 2024 17:17:16 +0700 Subject: [PATCH] fixup! fixup! TW-1356: fix the avatar not updated when app terminated --- .../settings_profile/settings_profile_view_mobile.dart | 5 ++++- .../settings_profile/settings_profile_view_mobile_style.dart | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile.dart b/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile.dart index 3280a52e03..54b900ae2e 100644 --- a/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile.dart +++ b/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile.dart @@ -212,10 +212,14 @@ class SettingsProfileViewMobile extends StatelessWidget { const Expanded(child: SizedBox()), InkWell( onTap: onBottomButtonTap, + highlightColor: Colors.transparent, + splashColor: Colors.transparent, + hoverColor: Colors.transparent, child: Container( width: double.infinity, height: SettingsProfileViewMobileStyle.bottomButtonHeight, padding: SettingsProfileViewMobileStyle.paddingBottomButton, + margin: SettingsProfileViewMobileStyle.marginBottomButton, decoration: BoxDecoration( borderRadius: BorderRadius.circular( SettingsProfileViewMobileStyle.bottomButtonRadius, @@ -251,7 +255,6 @@ class SettingsProfileViewMobile extends StatelessWidget { ), ), ), - SettingsProfileViewMobileStyle.paddingBottomBottomButton, ], ); } diff --git a/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile_style.dart b/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile_style.dart index 7bdc84a8ad..540e405686 100644 --- a/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile_style.dart +++ b/lib/pages/settings_dashboard/settings_profile/settings_profile_view_mobile_style.dart @@ -19,10 +19,9 @@ class SettingsProfileViewMobileStyle { static const bottomButtonHeight = 48.0; static const paddingBottomButton = EdgeInsets.only(left: 16.0, right: 16.0); + static const marginBottomButton = EdgeInsets.only(bottom: 32.0); static const bottomButtonRadius = 100.0; static const iconSize = 18.0; static const paddingIconAndText = SizedBox(width: 8.0); - - static const paddingBottomBottomButton = SizedBox(height: 32.0); }