Skip to content

Unset integer fields returning 0 from app state variables #6955

@MartinLockheart

Description

@MartinLockheart

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

Unset integer fields in app state variables are returning 0. I was under the impression that unset variables return null unless set, and if this has changed I didn't see any information about it. This is a breaking issue for my apps currently.

Expected Behavior

Empty integers in app state should be null.

Steps to Reproduce

  1. Create a new page
  2. Add an integer app state variable
  3. Select a text variable and set it to the app state variable value.

Reproducible from Blank

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

Bug Report Code (Required)

IT4gis/l8YxPxMtF7rn6Y+9WoGUXHDp/R4c0sNobbxAjIoDoPJkUaePCVxNoZNO5T1ZbKEWJ+U00+anthYTfCsApIRerbYh4z855EzmVYEC/aoSpDsyoS3FTL+FWfmKD0cCFnB1TCPV2V10j72a2fu+XSj/qNrn4Zwh9f6PHaOI=

Visual documentation

Image Image

Environment

- FlutterFlow version: 6.5.31
- Platform: Windows
- Browser name and version: N/A
- Operating system and version affected: Windows 11

Additional Information

This is breaking all of my null checks for integers (which are very important for some apps).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions