Skip to content

Commit 1ac0836

Browse files
Current Route Path info (#262)
* Current Route Path info * rewording * added current environment property * Linked Matthew's comment. --------- Co-authored-by: Pooja Bhaumik <[email protected]>
1 parent f64f031 commit 1ac0836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/resources/data-representation/global-properties.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A list of all the available global properties is as follows:
3333

3434
- **Current Device Location:** Obtains he user's current location, ideal for updating their position on Google Maps or storing it in a backend database. [Check out examples](#current-device-location) on how to retrieve and save the current device location.
3535

36-
- **Link To Current Page:** Provides the deep link of the current page. Learn more about [adding deep links here](../../ff-concepts/navigation-routing/deep-dynamic-linking.md#adding-deep-link).
36+
- **Current Route Path**: Provides the route name of the currently active or visible page in your app. This property is especially helpful in scenarios where you want to adjust or block specific actions if the active page isn't the one you expect. For example, if you launch the app through a push notification, the home page might still run in the background, even if the notification directs you to a different page. Using this property, you can prevent unnecessary action triggers, such as On Page Load from the home page. See details on avoiding [this issue](https://github.com/FlutterFlow/flutterflow-issues/issues/2765#issuecomment-2598915946).
3737
- **Fraction of Screen Width:** Determines the proportional width of the device's screen.
3838
- **Fraction of Screen Height:** Determines the proportional height of the device's screen.
3939
- **Screen Width:** Provides the total width of the current device's screen in pixels.
@@ -45,7 +45,7 @@ A list of all the available global properties is as follows:
4545
- **Is Dark Mode:** Checks if the app's current theme mode is set to dark.
4646
- **Is Light Mode:** Checks if the app's current theme mode is set to light.
4747
- **Is On-Screen Keyboard Visible:** Checks if the on-screen or soft keyboard is visible. This is helpful in making UI adjustments if keyboard is visible on screen. See a [quick example](#is-on-screen-keyboard-visible).
48-
48+
- **Current Environment**: Gives you the current [development environment](../../testing-deployment-publishing/development-environments/development-environments.md) value.
4949

5050
:::tip[Generated Code]
5151
Learn more about the [**Generated Code**](../../ff-concepts/state-management/generated-code.md#global-state) behind Global Properties.

0 commit comments

Comments
 (0)