UI Enhancements in IT Service Request, Announcements, Workforce and notification fixes

This commit is contained in:
2026-03-22 18:00:10 +08:00
parent 049ab2c794
commit 872c2aab87
15 changed files with 1290 additions and 183 deletions
+21 -16
View File
@@ -203,24 +203,29 @@ class _SchedulePanel extends ConsumerWidget {
?.copyWith(fontWeight: FontWeight.w700),
),
const SizedBox(height: 8),
...items.map(
(schedule) => _ScheduleTile(
schedule: schedule,
displayName: _scheduleName(
profileById,
schedule,
isAdmin,
rotationConfig,
for (int i = 0; i < items.length; i++)
M3FadeSlideIn(
delay: Duration(milliseconds: i * 40),
child: Padding(
padding: const EdgeInsets.only(bottom: 8),
child: _ScheduleTile(
schedule: items[i],
displayName: _scheduleName(
profileById,
items[i],
isAdmin,
rotationConfig,
),
relieverLabels: _relieverLabelsFromIds(
items[i].relieverIds,
profileById,
),
isMine: items[i].userId == currentUserId,
isAdmin: isAdmin,
role: profileById[items[i].userId]?.role,
),
),
relieverLabels: _relieverLabelsFromIds(
schedule.relieverIds,
profileById,
),
isMine: schedule.userId == currentUserId,
isAdmin: isAdmin,
role: profileById[schedule.userId]?.role,
),
),
],
),
);