π§ Navigation
How the SDK opens screens from your host app (Android, iOS, React Native) or from Flutter (AzeooSDKModules).
In this section
| Topic | Page |
|---|---|
| Every routable screen + parameters | Destination catalogue |
| Sync native tabs with Flutter | Module containers |
| Back button / gesture | Back & stack |
| URLs from push / email | Deep links |
Platform code & examples
Use the platform selector at the top of the sidebar β Navigation on your platform (Android, iOS, Flutter, or React Native).
Architectureβ
- Host calls
navigatewith a typed destination (not a raw path string). - Flutter switches to Nutrition or Training and pushes the matching route.
- If you registered a module container, the SDK also tells your native UI which tab to select.
Call navigate only after connect succeeds.
Embed vs navigateβ
| Goal | Use |
|---|---|
| SDK lives in a tab permanently | Modules β user navigates inside Flutter |
| Open a specific screen from your button / widget | sdk.navigate(...) |
| External URL (push, QR, universal link) | Deep links |
Typed destinations (native hosts)β
| Concept | Android | iOS | React Native |
|---|---|---|---|
| Nutrition plan | AzeooDestination.Nutrition.Plan(id = "x") | .nutrition(.plan(id: "x")) | Destination.nutrition.plan('x') |
| Training list | AzeooDestination.Training.Workouts | .training(.workouts) | Destination.training.workouts() |
Nutrition (15): home, diary, plans, plan, recipes, recipe, scanner, search, addFood, addMeal, cart, shoppingList, settings, addSelection, permissionTest
Training (5): home, workouts, exercises, progress, schedule
Full tables and snippets: Destination catalogue.
Flutter-only hosts
Use AzeooSDKModules (showMainScreen(), showPlan(), β¦) β platform Flutter β Navigation.
Stack API (summary)β
| Method | Behavior |
|---|---|
navigate(destination) | Go to screen (main API) |
back() | Pop one Flutter screen |
backToRoot() | Pop to current module root |
canGoBack() | Whether pop is possible |
handleDeepLink(uri) | Map URL β navigate |
setModuleContainer(...) | Host tab sync |
More: Back & stack Β· Module containers Β· Deep links.