Skip to content

Changing item value in index of an App State List doesn't work #956

@Gabanelli

Description

@Gabanelli

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

I used "Update App State" to modify an item of a list in an index, as is presented below:

image

But the value is not modified. I checked the code generated and it appears to set a value to a primitive value, not the list item reference, it can explain this behavior.

Code generated to modify itens by index in App State
image

Code generated to update the item (note there is a callback with the current value, but in this way the reference doesn't change):
image

Expected Behavior

The expected behavior is that the value specified by index was changed in the list

Steps to Reproduce

  1. Create a List of String in app state with one value
  2. Create an action of Update App State trying to change this value to any other

Reproducible from Blank

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

Bug Report Code (Required)

ITESz/Hqx89grtdD1qnTYMZAhQAkH1x/bZJEl9caawA0fYOtP6QTd+r+VBNVO8ufYW1iI1WIpDgC+srGiezlFvo4aCqceINo/6pQUhWXZGa7VJCWPM+eSnRBM95RGFCG1rSvvhZAXelZW3Afw2z/cq3qNleeY8aSfxBlZ7vfcPo=

Context

I'm trying to create a modifiable dynamic list that can accept multiple inputs from user

Visual documentation

image
image
image
image

Before click
image

After click
image

Additional Info

No response

Environment

- FlutterFlow version: 3.1
- Platform: Web, but can impact any
- Browser name and version: Chrome 113.0.5672.129

Metadata

Metadata

Labels

status: confirmedIssue has been reproduced and confirmed as a bug.type: bugSomething isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions