Skip to main content

πŸ”™ 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​

MethodBehavior
back()Pop one screen
backToRoot()Pop to current module home
canGoBack()true if Flutter can pop

System behavior (summary)​

PlatformAt module root, user presses back
iOSNo-op (no system β€œexit app” gesture)
AndroidApp moves to background (not finish())
React NativeSame 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.


See also​