Skip to content

Imported Data Type from Library Project is Treated as Integer in Page Parameters #6043

Open
@diegoserranobst

Description

@diegoserranobst

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

When using a custom Data Type imported from a library project (e.g., institucionTemplateDT), it is incorrectly recognized as an Integer when passed as a page parameter.

Inside the parameter definition UI, the correct Data Type appears selectable. However, once the parameter is used in the runtime preview or binding, it behaves as if it were a primitive value (Integer) instead of the expected complex object. This causes runtime errors and prevents proper data passing between pages.

Expected Behavior

Imported Data Types should retain their structure and be usable in page parameters just like local Data Types. Specifically:

The parameter should appear and behave as a structured object of the defined Data Type.

Binding and navigation should treat the parameter as an object, not as a primitive.

Steps to Reproduce

  1. Create a new blank project.
  2. Convert it to a library project.
  3. Create a custom Data Type (e.g., institucionTemplateDT) in the library.
  4. Publish the changes.
  5. Create a new blank test project.
  6. Import the library as a dependency.
  7. Create a new page that accepts a page parameter of type institucionTemplateDT.
  8. On the main page of the test project, add a button.
  9. Add a Navigate action from the button to the new page, passing an object for the parameter.
  10. Run the project and click the button.
  11. Observe that the parameter is treated as an Integer, not as a structured object.

Reproducible from Blank

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

Bug Report Code (Required)

IT4WlcmAsIh2rsdY7rqBYPlagiQsJlw1bZ03lMNxTks0IqrnOrYPXfikSEpWZ9+kTHxcL2D9rD007s6MhtnuA+UpOROabKY9/6p2Sg3MYEKmVbqXC86ZdmsnL5pJJVyY0cORkCN+AMFtWiUQ20+qB+nLZDbUNLrGIVQjLv+iVbPDp3eqQ0SLb3kNh1JWeC/v

Visual documentation

Image
Image
Image
Image
Image
Image

Environment

- FlutterFlow version: v6.0.21 (released June 17, 2025)
- Platform: Web
- Browser: Chrome 125.0.0.0
- OS: Linux Mint 21.3
- Flutter version: 3.27.3

Additional Information

This bug blocks the ability to modularize UI into libraries and reuse complex data structures. It forces a workaround using App State or custom serialization, which defeats the purpose of Data Type reuse across projects.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions