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

Allow sheet to be dragged only when scrolling starts at the edge #284

Open
haroke4 opened this issue Nov 17, 2024 · 2 comments
Open

Allow sheet to be dragged only when scrolling starts at the edge #284

haroke4 opened this issue Nov 17, 2024 · 2 comments
Assignees
Labels
feature request New feature or request P2

Comments

@haroke4
Copy link

haroke4 commented Nov 17, 2024

Hi,

First of all, thank you for this fantastic package!

I would like to replicate a specific behavior demonstrated in the attached video:

Draggable Behavior at Start: The bottom sheet starts as draggable.
Scrollable Upon Scrolling: When I begin scrolling within the sheet, it seamlessly transitions to a scrollable state.
Graceful Overscroll Handling: On overscrolling at the top of the sheet, it doesn't immediately become draggable again. Instead, it waits for the scrollable content to return to its initial position after the overscroll before transitioning back to draggable mode.
How can I achieve this behavior using flutter_smooth_sheets? Are there built-in configurations or examples that match this behavior?

Thanks for your help!

Video:
https://github.com/user-attachments/assets/a988c3d0-70a6-407b-bc24-75bc6d654977

@fujidaiti fujidaiti changed the title How to Implement Bottom Sheet Behavior as in the Attached Video? Allow sheet to be dragged only when scrolling starts at the edge Nov 20, 2024
@fujidaiti fujidaiti added feature request New feature or request P2 labels Nov 20, 2024
@fujidaiti
Copy link
Owner

Hi @haroke4,

Unfortunately, the current version does not support that behavior. Overscrolling always affects the position of the sheet.
I'm planning to add a flag in a future version to support this behavior.

@fujidaiti fujidaiti self-assigned this Nov 20, 2024
@haroke4
Copy link
Author

haroke4 commented Nov 27, 2024

Hi there,
Thank you for the response! I understand, and I appreciate your clarification. This feature would be a fantastic addition, and I’ll be eagerly looking forward to its implementation. Please do keep me updated if there are any developments or updates on this feature in the future. :3

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

No branches or pull requests

2 participants