Skip to content

+ Add Item for App State variable of type List <Double> not working as expected  #617

@ToddHerron

Description

@ToddHerron

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • 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

App State + Add Item does not work for app state variables of type List <Double>
Screenshot 2023-03-15 at 17 35 02

When you click on + Add Item, on the UI nothing appears to happen. In the background, it is actually creating list entries with value of 0 (not 0.0). (I suspect these are null.) You can see these added null items when you click on > (right chevron).

This seems to be a problem only with Lists of type . The other List types work as expected.

Expected Behavior

When you click on + Add Item a new line should be created with a sample Double value of 0.0.

You should be able to change the Double value on the newly created line.

Steps To Reproduce

  1. Click on App State on the left column
  2. Create a state variable of type List <Double>
  3. Click on + Add Item

Bug Report Code

IT4WiPHlvIpNodtK+KriYMEw/CQUNlwnbbgrl8NxRRcbIb7yP5wPXPykP1doTcOiTFZYMFv9inw009GNveDtC+QHAzSeR6Fx+M5cZjvMRjuWRc2zO7uWeWhtN8pRNEuV07uJmCNDJtpscXgM7E7zLuTIaB7YJKLvNmo4D/+jLtrA+V6pAhm6Xn0Jg1ZSfCvr

Context

I have internal tables in my app that are stored as lists. I was getting RangeErrors because additional items I thought I'd added to the state list variables weren't being saved.

Additional info

Screenshot 2023-03-15 at 17 19 10

Environment

- FlutterFlow version: 1.1.50
- Platform: MacOS
- Browser name and version: Chrome Version 111.0.5563.64 (Official Build) (x86_64)
- Operating system and version affected: MacOS Ventura 13.1 (22C65)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions