Skip to content

Current Route Path Exception From Library #7004

@lucas-baptista-most

Description

@lucas-baptista-most

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Global variable Current Route Path causes exception when inside a library project.

Expected Behavior

Returning the right route value, or at least an empty / null value in error cases, but not an exception that interrupts the flow.

Steps to Reproduce

  1. Create a library project
  2. Inside the library, creates an App Action Block with an alert dialog of the variable Current Route Path, with a default value
  3. Publish the lib and import it into another project
  4. Call the App Action Block created, it will cause an app crash

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4sz/Hqx892pbxD0Kr2ccB7/SQsQzp9bYISscp/bxIgGIDzPOw+ZPWkVBZuZ73hTVVcJUSmmlMG3MKJhuLLM/oCNk+WGoh6zJZhFgyUQlGVQZOBDJCVPmpQAZ5UJnKe1J6roiMmNtBhLloA1F+uGO6RXhbsJOOzImdISq/LZO4=

Visual documentation

Lib App Action Block:

Image

Project consuming the lib:

Image

Error:

Image

Environment

- FlutterFlow version: 6.6.12
- Platform: Web
- Browser name and version: Google Chrome (144.0.7559.109 - 64 bits)
- Operating system and version affected: Ubuntu 24.04.3 LTS

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugstatus: confirmedIssue has been reproduced and confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions