π§ Navigation API
Typed navigation and stack control for Android, iOS, and React Native.
Full guide: Navigation overview Β· Destination catalogue
navigate(destination)β
Primary API. Switches module tab + Flutter route.
| Platform | Example |
|---|---|
| iOS | sdk.navigate(to: .nutrition(.plan(id: "x"))) |
| Android | sdk.navigate(AzeooDestination.Nutrition.Plan(id = "x")) |
| React Native | sdk.navigate(Destination.nutrition.plan('x')) |
Stackβ
| Method | Description |
|---|---|
back() / goBack() | Pop one screen |
backToRoot() | Pop to tab root |
canGoBack() | true if pop is possible |
Tabs & deep linksβ
| Method | Description |
|---|---|
activateTab(module, bottomSafeArea?) | Show module without sub-route (tab hosts) |
setModuleContainer(...) | Host adapter for cross-module tab sync |
handleDeepLink(uri) | Navigate from URL |
getCurrentRoute() | Debug current Flutter route |
See Module containers Β· Deep links.
Destinations (quick ref)β
Nutrition: home, diary, plans, plan(id), recipes, recipe(id, name?), scanner, search, addFood, addMeal, cart, shoppingList, settings, addSelection, permissionTest
Training: home, workouts, exercises, progress, schedule
Pigeon: AzeooNavigationApi in pigeons/azeoo_api.dart.