Navigation Flow Documentation
Complete Navigation Structure
Navigation In : From splash screen
Navigation Out :
Tap "Geofences" → /geofences
Tap "Live Activities" → /status (debug page)
Tap "Media" → Not implemented yet
📍 Geofences List (/geofences)
Navigation In : From home screen
Navigation Out :
Back button (←) → /home
FAB (+) → /geofences/create
Refresh button (🔄) → Reload data
Actions :
View geofence details in expandable cards
Delete geofences via confirmation dialog
➕ Create Geofence (/geofences/create)
Navigation In : From geofences list
Navigation Out :
Close button (✕) → /geofences
Save success → /geofences (automatic)
Actions :
Fill form and save new geofence
Pick location from predefined list or manual coordinates
Navigation In : From home screen (via "Live Activities" card)
Navigation Out :
Back button (←) → /home
"Test Geofencing Features" button → /geofences
// Geofences List
leading: IconButton (
icon: const Icon (Icons .arrow_back, color: Colors .white),
onPressed: () => context.go ('/home' ),
),
// Create Geofence
leading: IconButton (
icon: const Icon (Icons .close, color: Colors .white),
onPressed: () => context.go ('/geofences' ),
),
// App Status
leading: IconButton (
icon: const Icon (Icons .arrow_back),
onPressed: () => context.go ('/home' ),
),
/splash (initial)
└── /home
├── /geofences
│ ├── /geofences/create
│ └── /geofences/edit/:id (future)
└── /status
GoRouter : context.go('/route') for direct navigation
AppBar leading : Manual back buttons for custom behavior
FloatingActionButton : Quick actions (create geofence)
Card onTap : Navigate to features from home
App Launch : Splash → Home
View Geofences : Home → Geofences List
Create Geofence : Geofences List → Create Form → Back to List
Debug Info : Home → Status → Back to Home
Return Home : Any screen → Home (via back buttons)
Clear visual hierarchy with consistent AppBar styling
Intuitive icon usage (← for back, ✕ for close, + for create)
Consistent color scheme (white icons on primary background)
Logical navigation flow that matches user expectations