* Workforce, Schedule generation and geofencing.

This commit is contained in:
2026-02-09 22:19:31 +08:00
parent 1f16da8f88
commit f4dea74394
14 changed files with 2021 additions and 11 deletions
@@ -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;
}),
File diff suppressed because it is too large Load Diff