From 38d571a2c9d6eda447983f0ef3c77a57dcb7a08a Mon Sep 17 00:00:00 2001 From: mohammad Date: Sun, 28 Jul 2024 11:20:28 +0300 Subject: [PATCH] profile page fix bugs --- .../view/widgets/profile/profile_tab.dart | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/lib/features/menu/view/widgets/profile/profile_tab.dart b/lib/features/menu/view/widgets/profile/profile_tab.dart index 19c091a..d3e2dd3 100644 --- a/lib/features/menu/view/widgets/profile/profile_tab.dart +++ b/lib/features/menu/view/widgets/profile/profile_tab.dart @@ -20,7 +20,7 @@ class ProfileTab extends StatelessWidget { Widget _buildProfileContent(BuildContext context) { final homeCubit = context.read(); return Padding( - padding: const EdgeInsets.symmetric(vertical: 10), + padding: const EdgeInsets.symmetric(vertical: 10,), child: InkWell( onTap: () { Navigator.of(context) @@ -39,23 +39,27 @@ class ProfileTab extends StatelessWidget { children: [ const SizedBox(height: 20), DefaultContainer( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - children: [ - BodyMedium( - text: '${HomeCubit.user!.firstName ?? ''} ', - fontWeight: FontWeight.bold, - ), - BodyMedium( - text: HomeCubit.user!.lastName ?? '', - fontWeight: FontWeight.bold, - ), - ], - ), - const BodySmall(text: "Syncrow Account"), - ], + child: Padding( + padding: const EdgeInsets.all(10.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + BodyMedium( + text: '${HomeCubit.user!.firstName ?? ''} ', + fontWeight: FontWeight.bold, + ), + BodyMedium( + text: HomeCubit.user!.lastName ?? '', + fontWeight: FontWeight.bold, + ), + ], + ), + SizedBox(height: 5,), + const BodySmall(text: "Syncrow Account"), + ], + ), ), ), ],