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

➕ Support Drag and Select feature #175 #660

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

WeiJun0507
Copy link

@WeiJun0507 WeiJun0507 commented Nov 9, 2024

According to the previous PR #465, I have made a revamped version of the Drag and Select feature.

In this new pull request,

  1. Drag select logic has been moved into the Provider class to separate the UI layer and the Logic layer.
  2. Support Edge auto-scrolling using EdgeDraggingAutoScroller.
  3. Better position calculation to enhance the drag performance.

lib/src/provider/asset_picker_provider.dart Outdated Show resolved Hide resolved
lib/src/provider/asset_picker_provider.dart Outdated Show resolved Hide resolved
lib/src/delegates/asset_picker_builder_delegate.dart Outdated Show resolved Hide resolved
lib/src/provider/asset_picker_provider.dart Outdated Show resolved Hide resolved
@WeiJun0507
Copy link
Author

I have updated the code upon the above suggestion. Please re-review this PR again

@AlexV525
Copy link
Member

AlexV525 commented Dec 3, 2024

Now we have the AssetGridDragSelectionCoordinator that takes care of all calculations. The feature now supports selecting assets through long press, horizontal drag, and pan gestures. Anyone who is watching this, please feel free to give feedback!

@WeiJun0507
Copy link
Author

I am currently taking sick leave, and will endeavor to review and provide feedback as soon as possible. Thank you very much for your hard work; I truly appreciate it.❤️

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