From e059ee71f39f25c41ce9b84ee232274fdc36b9f9 Mon Sep 17 00:00:00 2001 From: Vaibhav Surve Date: Tue, 8 Jul 2025 17:58:08 +0530 Subject: [PATCH] feat(user-profile): wrap content in SafeArea for improved layout on different devices --- lib/view/layouts/user_profile_right_bar.dart | 22 +++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/view/layouts/user_profile_right_bar.dart b/lib/view/layouts/user_profile_right_bar.dart index 265a102..8b37bbf 100644 --- a/lib/view/layouts/user_profile_right_bar.dart +++ b/lib/view/layouts/user_profile_right_bar.dart @@ -59,14 +59,20 @@ class _UserProfileBarState extends State width: isCondensed ? 90 : 250, duration: const Duration(milliseconds: 300), curve: Curves.easeInOut, - child: Column( - children: [ - userProfileSection(), - MySpacing.height(8), - supportAndSettingsMenu(), - const Spacer(), - logoutButton(), - ], + child: SafeArea( + bottom: true, + top: false, + left: false, + right: false, + child: Column( + children: [ + userProfileSection(), + MySpacing.height(8), + supportAndSettingsMenu(), + const Spacer(), + logoutButton(), + ], + ), ), ), );