-
-
Notifications
You must be signed in to change notification settings - Fork 503
✨ Support Multiple Special Items #635
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
base: feat/v10
Are you sure you want to change the base?
✨ Support Multiple Special Items #635
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this idea, would be better if we go further to support dynamic grid positions. 😆
3f0a752 to
776ab18
Compare
|
I think we are in a relatively good state. Thanks for all your contributions! However, I'm planning some API-breaking changes such as #639, that will be pushed into the next major release, so I want to hold them together. |
3d8f331 to
054752c
Compare
Co-authored-by: Alex Li <[email protected]>
Co-authored-by: Alex Li <[email protected]>
Co-authored-by: Alex Li <[email protected]>
Co-authored-by: Alex Li <[email protected]>
Co-authored-by: Alex Li <[email protected]>
054752c to
f310550
Compare
|
I'll take care of the rest once we reach the v10 milestone. |
# Conflicts: # example/lib/constants/picker_method.dart # lib/src/constants/config.dart # lib/src/delegates/asset_picker_builder_delegate.dart # lib/src/delegates/asset_picker_delegate.dart
✨ What's the context?
Current
AssetPickerConfigonly accept singlespecialItemPositionandspecialItemBuilderwhich is is not suitable for cases where multiple special items is required.🛠 Changes being made
specialItemsinAssetPickerConfigand which accept list ofspecialItemPositionandspecialItemBuilder.isPermissionLimitedparam toSpecialItemBuildertypedef for case where special item is required to remove whenisPermissionLimitedis false. Example as below.SpecialPosition.noneenum.✨ Result