fix: Correct weekday order and active day index mapping in shift schedule summary.

This commit is contained in:
Achintha Isuru
2026-02-22 21:20:56 -05:00
parent 7f3a66ba11
commit 0c2482ee9b

View File

@@ -106,13 +106,13 @@ class ShiftScheduleSummarySection extends StatelessWidget {
}
Widget _buildWeekdaySchedule(BuildContext context) {
final List<String> weekDays = ['M', 'T', 'W', 'T', 'F', 'S', 'S'];
final List<String> weekDays = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
final Set<int> activeDays = _getActiveWeekdayIndices();
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: List.generate(weekDays.length, (index) {
final bool isActive = activeDays.contains(index + 1); // 1-7 (Mon-Sun)
final bool isActive = activeDays.contains(index); // 1-7 (Mon-Sun)
return Container(
width: 38,
height: 38,