Skip to content

Checkbox not able to stay checked - data from firebase - inside listview #940

@RECPOS

Description

@RECPOS

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

As soon as I click on a checkbox it becomes uncheck

Notice: that the checkbox has a action,
on toggeled on => add to list the document for that row, No rebuild
on toggeled off => remove from list the document, which is the one added before, No rebuild

Expected Behavior

I should be able to check the widget and it should stay checked until i uncheck it again.
The aciton does its job and the item is stored in locallist even though the checkbox is automatically unchecked.

Steps to Reproduce

  • Add Checkbox under a Listview, which is has dynamically chilren or even if you have the backend query on the listview this still happends.
  • Create a List in Local page state variables and give et any name
  • Now on the checkbox go to Action
  • Set On toggled On to update widget state -> add to list the local page state variable created earlier, with the row document in the list. Remember to set the update type to "no rebuild"
  • Set On toggled Off to update widget state -> remove from list the local page state variable created earlier, with the row document in the list. Remember to set the update type to "no rebuild"
  • Now Click on any of the specific checkboxes and they automatically are uncheck after a second

Bug Report Code (required, generate from Widget Tree)
IT4shfLl8ZNPj7xd1s7yc/lR/CcWH0wgaoE8scp8bxcjGJTsB7N/O/WkPhZuOP3jdG9MPESmmmIEpPTskez1J/o4CEmcRa06wsxcUgLJfD2me5OBC5eWVHZTL9xhIB214LbQpAhDObZqR1om7FOpOOqQbDHvJID0ImdISq/LZO4=

Reproducible from Blank

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

Bug Report Code (Required)

IT4shfLl8ZNPj7xd1s7yc/lR/CcWH0wgaoE8scp8bxcjGJTsB7N/O/WkPhZuOP3jdG9MPESmmmIEpPTskez1J/o4CEmcRa06wsxcUgLJfD2me5OBC5eWVHZTL9xhIB214LbQpAhDObZqR1om7FOpOOqQbDHvJID0ImdISq/LZO4=

Context

I would like to check the checkboxes and keep them checked and make sure it adds the rows in the locallist

all was working in the previous version. It looks like the new update of flutterflow in no rebuild does not get set.

Visual documentation

test-mode-sales-force-og-1-side-mere-personlig-microsoft-edge-2023-05-27-14-4_qOoKii1z.mp4

Additional Info

No response

Environment

- FlutterFlow version: 3.1 - flutter 3.7.12
- Platform: Android both physical phone and emulator and Web
- Browser name and version: Tested on Edge v113.0.1774.50 (Officielt build) (64-bit) and Chrome v. 113.0.5672.127 (Official Build) (64-bit)
- Operating system and version affected: Using MS windows 11

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions