refactor: Adjust button layouts and text handling for logout and profile save/cancel actions.

This commit is contained in:
pradeepkumar
2026-03-16 10:47:42 +05:30
parent aaed88d51d
commit c4c6322507
2 changed files with 39 additions and 22 deletions

View File

@@ -325,25 +325,11 @@ class _MenuDrawer extends ConsumerWidget {
SizedBox(
width: double.infinity,
height: 54,
child: ElevatedButton.icon(
child: ElevatedButton(
onPressed: () {
Navigator.pop(context);
ref.read(authProvider.notifier).logout();
},
icon: const Icon(
Icons.logout_rounded,
color: AppColors.primaryDark,
size: 24,
),
label: const Text(
'Log Out',
style: TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w700,
color: AppColors.primaryDark,
),
),
style: ElevatedButton.styleFrom(
backgroundColor: AppColors.accentOrange,
elevation: 0,
@@ -351,6 +337,28 @@ class _MenuDrawer extends ConsumerWidget {
borderRadius: BorderRadius.circular(15),
),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: const [
Icon(
Icons.logout_rounded,
color: AppColors.primaryDark,
size: 20,
),
SizedBox(width: 8),
Text(
'Log Out',
style: TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w700,
color: AppColors.primaryDark,
),
),
],
),
),
),
] else ...[