Initial Commit: Duty Schedule and Attendance Logbook
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user