Closed lcuis closed 4 years ago
Hi @lcuis , that's a really good work. I'm really appreciate your work for this repo. I've reviewed your code and it's looking good to me. So your PR has been merged. Thank you
Thank you very much for your review, your comment and the merge @icemanbsi !
When will this new version be released? how can i have access to it?
Hello @icemanbsi ,
Proposing those 4 changes:
While introducing the clear button, PR #8 introduced a regression on issue #4 . The result was some zebras with the example given in the issue. Sorry about that. The solution consisted in adding another conditional Expanded.
Issue #6 describes a situation where values are not consistent and lead to error messages due to an assert in _updateSelectedIndex . The new assertUniqueValue parameter set to true by default lets the caller decide whether or not to perform this assert. This can temporarily prevent code modification while testing the plugin with inconsistent data.
It can be that one wants to display the selected value differently than in the list. In this case, the new parameter selectedValueWidgetFn can be used to customize the rendering widget. Here is an example with an outcome similar to the one in the main.dart example: selectedValueWidgetFn: (value) => Padding( padding: EdgeInsets.fromLTRB(20, 20, 20, 20), child:Text( value??"Select please", style: value==null?TextStyle(color:Theme.of(context).hintColor):null, ) ),
Got rid of a warning: IconColor getters end with a return to take into account situations not covered by the case.