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 behavior is inconsistent with the common behavior #357

Open
Jackjun724 opened this issue Dec 23, 2024 · 1 comment
Open

Drag behavior is inconsistent with the common behavior #357

Jackjun724 opened this issue Dec 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Jackjun724
Copy link

I tried the dragging of ModalSheet in iOS and YouTube, and they share a common characteristic: even if I drag a very short distance, as long as the dragging speed is fast enough, they will be closed. In this repository, even if I drag it very fast, I still need to drag it to the bottom of the screen, which makes this feature particularly useless for mobile users, as it is difficult for me to close it using gestures.

@Jackjun724 Jackjun724 added the enhancement New feature or request label Dec 23, 2024
@ulusoyca
Copy link
Collaborator

ulusoyca commented Dec 25, 2024

Hello @Jackjun724 ! Thanks for opening the issue. We are using the same default values for Android and iOS coming from the implementation in Flutter SDK. However, it is possible to customize these values by extending the WoltModalType class and setting up closeProgressThreshold and minFlingVelocity

More info in this API rference: https://pub.dev/documentation/wolt_modal_sheet/latest/wolt_modal_sheet/WoltBottomSheetType-class.html

Also the usage example: https://github.com/woltapp/wolt_modal_sheet/blob/main/example/lib/main.dart#L214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants