Pop

The Pop Page action navigates backward in the app's navigation stack, closing the current page/screen and returning to the previous one. This is the standard way to implement "back" functionality in mobile apps.


πŸ“¦ Properties

Property
Type
Required
Description

maybe

Boolean

❌

If true, safely attempts to pop without throwing errors

result

Expression (Any)

❌

Data to pass back to the previous screen


βœ… Common Use Cases

  • Closing detail screens and returning to list views

  • Dismissing modal dialogs or bottom sheets

  • Navigating back after completing forms or tasks

  • Implementing cancel/back buttons in workflows

  • Returning from settings or configuration screens


βš™οΈ Default Behavior

By default:

Behavior
Description

Navigation Safety

Uses standard Navigator.pop() - throws error if cannot pop

Result Passing

No result data is passed back to the previous screen

Stack Management

Removes current route from navigation stack

Animation

Uses platform default back transition animation


πŸ› οΈ How to Use

Copy Slugs
Copy Slug
  1. Add the action to a widget event (e.g., back button, cancel button)

  2. Choose Pop Page from the action list

  3. Optionally configure maybe for safe popping or result to pass data back


πŸ”„ Result Handling

When popping with a result, the data is passed back to the previous screen. This is commonly used with the Go To Page action's Expect Result and onResult properties.

Result Structure:




Asset Placeholder: Tutorial video demonstrating back navigation and result passing in Digia Studio

Last updated