Initial Commit: Duty Schedule and Attendance Logbook

This commit is contained in:
2026-03-07 10:16:28 +08:00
parent 73dc735cce
commit c6f536edeb
24 changed files with 3165 additions and 282 deletions
+15
View File
@@ -331,6 +331,7 @@ class NavSection {
}
List<NavSection> _buildSections(String role) {
final isStandard = role == 'standard';
final mainItems = [
NavItem(
label: 'Dashboard',
@@ -338,6 +339,20 @@ List<NavSection> _buildSections(String role) {
icon: Icons.grid_view,
selectedIcon: Icons.grid_view_rounded,
),
if (!isStandard)
NavItem(
label: 'Attendance',
route: '/attendance',
icon: Icons.fact_check_outlined,
selectedIcon: Icons.fact_check,
),
if (!isStandard)
NavItem(
label: 'Whereabouts',
route: '/whereabouts',
icon: Icons.share_location_outlined,
selectedIcon: Icons.share_location,
),
NavItem(
label: 'Tickets',
route: '/tickets',
+1 -1
View File
@@ -61,7 +61,7 @@ class ProfileAvatar extends StatelessWidget {
return CircleAvatar(
radius: radius,
backgroundImage: NetworkImage(avatarUrl!),
onBackgroundImageError: (_, __) {
onBackgroundImageError: (_, _) {
// Silently fall back to initials if image fails
},
child: null, // Image will display if loaded successfully