* Workforce, Schedule generation and geofencing.
This commit is contained in:
@@ -177,8 +177,9 @@ class _UserManagementScreenState extends ConsumerState<UserManagementScreen> {
|
||||
columnSpacing: 24,
|
||||
horizontalMargin: 16,
|
||||
dividerThickness: 1,
|
||||
headingRowColor: MaterialStateProperty.resolveWith(
|
||||
(states) => Theme.of(context).colorScheme.surfaceVariant,
|
||||
headingRowColor: WidgetStateProperty.resolveWith(
|
||||
(states) =>
|
||||
Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
),
|
||||
columns: const [
|
||||
DataColumn(label: Text('User')),
|
||||
@@ -228,16 +229,16 @@ class _UserManagementScreenState extends ConsumerState<UserManagementScreen> {
|
||||
if (selected != true) return;
|
||||
_showUserDialog(context, profile, offices, assignments);
|
||||
},
|
||||
color: MaterialStateProperty.resolveWith((states) {
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
color: WidgetStateProperty.resolveWith((states) {
|
||||
if (states.contains(WidgetState.selected)) {
|
||||
return Theme.of(
|
||||
context,
|
||||
).colorScheme.surfaceTint.withOpacity(0.12);
|
||||
).colorScheme.surfaceTint.withValues(alpha: 0.12);
|
||||
}
|
||||
if (index.isEven) {
|
||||
return Theme.of(
|
||||
context,
|
||||
).colorScheme.surface.withOpacity(0.6);
|
||||
).colorScheme.surface.withValues(alpha: 0.6);
|
||||
}
|
||||
return Theme.of(context).colorScheme.surface;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user