How codeacc384-coder/ambulanc_first works
Ambulance First is a Flutter ambulance-service app; the README highlights a customer active-trip screen with ETA, route, map preview, telemetry, and hospital alert information. The supplied tree omits the Dart application source, so those capabilities are documented here but their runtime flow cannot be traced. The visible code mainly covers platform launchers and two Supabase functions; source excerpts do not establish how the app invokes those functions or how the UI obtains its data.
Main entry points: flutter_window.h Flutter window · main.cc Linux app entry · main.cpp Windows app entry · AppDelegate.swift iOS app delegate
Components 11
Customer experience
- Active trip UI
Backend functions
- Route calculation
supabase/functions/calculate-route/index.ts - Staff provisioning
supabase/functions/admin-provision-staff/index.ts
Platform shells
- Linux app entry
linux/runner/main.cc - Linux application
linux/runner/my_application.cc - Windows app entry
windows/runner/main.cpp - Flutter window
windows/runner/flutter_window.h - Win32 window
windows/runner/win32_window.cpp - iOS app delegate
ios/Runner/AppDelegate.swift - iOS plugin registration
ios/Runner/AppDelegate.swift
Other components
- Customer
Connections 5
- Linux app entry → Linux application: creates and runs
linux/runner/main.cc - Windows app entry → Flutter window: creates and shows
windows/runner/main.cpp - Flutter window → Win32 window: inherits window
windows/runner/flutter_window.h - iOS app delegate → iOS plugin registration: registers plugins
ios/Runner/AppDelegate.swift - Customer → Active trip UI: views trip