Closed CarltonBranch closed 3 years ago
@CarltonBranch Please check the complete example. https://github.com/hiddencaliber/flutter_multiselect/blob/master/example/lib/main.dart
On saved is only triggered when form save is called.
if we want to call OnSaved on click Save button(Which button is in SelectionModal
class file) then how it possible?
Hi @hiddencaliber , first of all thank you for this very useful package. I see this same question gets asked many times. I made the same error because the widget has a Save button, so I think it's natural to expect the onSaved callback to relate to that save button. Maybe give the button a different name like "OK" or "continue" to avoid the confusion.
@oTree-org : Please use "saveButtonText" property to override whatever text you want. Thanks
All, Please open a new issue, if you still have the problem. Thanks
Hi, In terms of functionality everything is working normally. However the value field is always null. The onSaved function doesn't print the value. Even when I copy/paste your example code into my project I get the same behaviour. Everything looks like it's working but the value field is not populated.
Any ideas would by greatly appreciated
This is the example code from the main page. I had to add the colours since they were throwing an error because they can't be null.