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

Drag Select Special Option for Asset Picker #658

Closed
wants to merge 17 commits into from

Conversation

firecannons
Copy link

In these commits there is a new drag and select feature that is available as a special option, just as no-preview is one of these options. There is also auto scroll when the user moves their finger/stylus too close to the bottom or top, it scrolls for them so they can keep selecting as it scrolls. It takes advantage of the drag_select_grid_view library.

The demo in this repo is also updated to have a drag select example.

I think drag and select is a very useful feature to have, so users can select a large number of items in a short time, and don't have to bother to select each item on an individual basis.

Please pardon my Chinese. I know it probably isn't perfect.

This is already done in a different pull request, well done to them: #465. They did it in much less lines of code. Maybe ours could be combined somehow.

I am happy to change anything that needs to be changed.

Copy link
Member

@AlexV525 AlexV525 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Generally I think we don't want another package for this ability. It would be nice if you can raise your suggestion to #660.

@@ -30,6 +30,7 @@ dependencies:
provider: ^6.0.5
video_player: ^2.7.0
visibility_detector: ^0.4.0
drag_select_grid_view: ^0.6.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing such a package will significantly increase the risk to our functionality since we don't understand how it works and cannot control if it can serve us well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the feedback. Yes, I think you are probably right. Introducing a new package brings uncertainties. And from my time working on this, making this package and drag_select_grid_view work together nicely was difficult, it would have been easier to create it from scratch. I tested #660, it appears to work. Seems like a good solution.

@AlexV525
Copy link
Member

I'm closing this based on the above discussion. Willing to hear your feedback with #660.

@AlexV525 AlexV525 closed this Nov 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants