Skip to content
New issue

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

API reference does not align with Usage section on front page of pub dev site #46

Open
danarteaga opened this issue Sep 13, 2022 · 0 comments

Comments

@danarteaga
Copy link

danarteaga commented Sep 13, 2022

I had to migrate from smart_select to this package, because the author of the latter package has apparently abandoned it. Interestingly, it appears that the github repo (https://github.com/davigmacode/flutter_smart_select) for his latest smart_select version (4.3.2) does not align with version on pub dev (https://pub.dev/packages/smart_select). I say this because flutter_awesome_select forks off of his github repo, and these issues have carried over.

Under the Usage section on pub dev (for both smart_select and flutter_awesome_select) there is an option for 'activeColor' for S2ChoiceStyle. I had been using this just fine with smart_select: ^4.3.2 in my pubspec.yaml. However, after switching to this library, even though this parameter is still listed under the Usage section on the main pub dev page, it is clearly not available in the API reference, and it appears that this now now 'highlightColor'
https://pub.dev/documentation/flutter_awesome_select/latest/flutter_awesome_select/S2ChoiceStyle-class.html

Breaking changes that I've found:

  • 'activeColor' for 'S2ChoiceStyle' is now 'highlightColor'
  • 'value' parameter for 'SmartSelect.single/multiple' is now 'selectedValue'
  • 'choiceHeaderStyle' is now 'groupHeaderStyle'
  • 'S2ChoiceHeaderStyle' is now 'S2GroupHeaderStyle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant