π Back & stack
Flutter inside the SDK maintains a per-module route stack. The host can pop programmatically or rely on the system back gesture.
Platform code & examples
Platform selector β Navigation (back gesture, manifest flags, custom handlers).
Stack APIβ
| Method | Behavior |
|---|---|
back() | Pop one screen |
backToRoot() | Pop to current module home |
canGoBack() | true if Flutter can pop |
System behavior (summary)β
| Platform | At module root, user presses back |
|---|---|
| iOS | No-op (no system βexit appβ gesture) |
| Android | App moves to background (not finish()) |
| React Native | Same as underlying OS |
On Android 13+, predictive back uses OnBackPressedDispatcher. The SDK merges android:enableOnBackInvokedCallback by default; debug manifest conflicts are documented on the Android navigation page.