-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
status: confirmedIssue has been reproduced and confirmed as a bug.Issue has been reproduced and confirmed as a bug.type: bugSomething isn't working.Something isn't working.
Description
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 am unable to set the form field for the choice chips. If I set the value of String, The project fails to build with the following error:
Running "flutter pub get" in choice_chips_bug...
Launching lib/main.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...
lib/pages/home_page/home_page_widget.dart:112:59: Error: A value of type 'String' can't be assigned to a variable of type 'List<String>?'.
- 'List' is from 'dart:core'.
_model.choiceChipsController?.value = 'Option 2';
^
Waiting for connection from debug service on Web Server... 41.7s
Failed to compile application.
Expected Behavior
It should set the value of the form field correctly
Steps To Reproduce
- Add a Choice Chips, add some options, add some initial value as well
- Add a button and set the action to "Set Form Field" and set the choice chips value to something.
- Run the project and the error will be visible
Bug Report Code
https://app.flutterflow.io/project/choice-chips-bug-7oorcp?tab=uiBuilder&page=HomePage
Context
I am unable to update the choice chips according to my needs.
Additional info
Environment
- FlutterFlow version: v3.1
- Platform: Web
- Browser name and version: Chrome 111.0.5563.64
- Operating system and version affected: MacOS Ventura 13.0Metadata
Metadata
Assignees
Labels
status: confirmedIssue has been reproduced and confirmed as a bug.Issue has been reproduced and confirmed as a bug.type: bugSomething isn't working.Something isn't working.

