We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The method '[]' was called on null. Receiver: null Tried calling: []("display")
I am using hardcoded list to test but its not working.
MultiSelectFormField( title: Text( "Title Of Form", style: TextStyle(fontSize: 16), ), dataSource: [ { "display": "Running", "value": "Running", }, { "display": "Climbing", "value": "Climbing", }, ], textField: "display", valueField: 'value', okButtonLabel: 'OK', cancelButtonLabel: 'CANCEL', hintWidget: Text('Please choose one or more'), initialValue: [ { "display": "Running", "value": "Running", }, ], onSaved: (value) { if (value == null) return; setState(() { // _selectedCategory = value; }); }, ),
The text was updated successfully, but these errors were encountered:
You should only set a List of values to initialValue, and not a List containing each display-value pair. Try setting the initialValue to ["Running"]
Sorry, something went wrong.
No branches or pull requests
I am using hardcoded list to test but its not working.
The text was updated successfully, but these errors were encountered: