Skip to content

Commit ba3ee73

Browse files
committed
refactor(account): Remove role display logic
- Removed unused role display code - Cleaned up account page widget
1 parent 00ad1af commit ba3ee73

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/account/view/account_page.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,17 @@ class AccountPage extends StatelessWidget {
130130
statusWidget = Column(
131131
mainAxisSize: MainAxisSize.min, // To keep column tight
132132
children: [
133-
if (user?.role != null) ...[
134-
// Show role only if available
135-
const SizedBox(height: AppSpacing.xs),
136-
Text(
137-
l10n.accountRoleLabel(user!.role.name),
138-
style: textTheme.bodyMedium?.copyWith(
139-
color: colorScheme.onSurfaceVariant,
140-
),
141-
textAlign: TextAlign.center,
142-
),
143-
],
133+
// if (user?.role != null) ...[
134+
// // Show role only if available
135+
// const SizedBox(height: AppSpacing.xs),
136+
// Text(
137+
// l10n.accountRoleLabel(user!.role.name),
138+
// style: textTheme.bodyMedium?.copyWith(
139+
// color: colorScheme.onSurfaceVariant,
140+
// ),
141+
// textAlign: TextAlign.center,
142+
// ),
143+
// ],
144144
const SizedBox(height: AppSpacing.md), // Consistent spacing
145145
OutlinedButton.icon(
146146
// Changed to OutlinedButton.icon

0 commit comments

Comments
 (0)