Skip to content

Commit 59f855c

Browse files
committed
feat(user_management): conditionally display authentication column based on device type
- Hide the 'authentication' column on mobile devices to improve UI/UX - Use a conditional statement to render the column only if the device is not mobile - Update both the DataColumn2 and DataCell related to the 'authentication' information
1 parent 7556d2f commit 59f855c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/user_management/view/users_page.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,11 @@ class _UsersPageState extends State<UsersPage> {
129129
label: Text(l10n.email),
130130
size: ColumnSize.L,
131131
),
132-
DataColumn2(
133-
label: Text(l10n.authentication),
134-
size: ColumnSize.S,
135-
),
132+
if (!isMobile)
133+
DataColumn2(
134+
label: Text(l10n.authentication),
135+
size: ColumnSize.S,
136+
),
136137
if (!isMobile)
137138
DataColumn2(
138139
label: Text(l10n.subscription),
@@ -235,7 +236,8 @@ class _UsersDataSource extends DataTableSource {
235236
],
236237
),
237238
),
238-
DataCell(Text(user.appRole.authenticationStatusL10n(context))),
239+
if (!isMobile)
240+
DataCell(Text(user.appRole.authenticationStatusL10n(context))),
239241
if (!isMobile)
240242
DataCell(Text(user.appRole.subscriptionStatusL10n(context))),
241243
DataCell(

0 commit comments

Comments
 (0)