Skip to content

Conversation

bjartebore
Copy link

When a ModalBottomSheets that due to its content is smaller than a full screen bottom sheet, the user has to move the dialog almost to the bottom of the screen before it dismisses. This is because the closeProgressThreshold calculates the threshold based on the viewport size and not the size of the rendered bottom sheet.

We need to adjust for this based on the height difference of the viewport and the rendered content within the bottom sheet dialog

Related issue: #421

Bjarte Bore added 2 commits November 27, 2024 17:15
When a ModalBottomSheets that due to its content is smaller than a full screen bottom sheet, the closeProgressThreshold is calculated based on how far the dialog has to move based on the percentage of the viewport/fullscreen dialog.

We need to adjust for this based on the height difference of the viewport and the rendered content within the bottom sheet dialog

Related issue: #jamesblasco#421
Bjarte Bore added 5 commits January 14, 2025 07:32
By leveraging raw events from Listener instead of GestureDetector batteling in the GestureArena we are able to be less dependent on the Notification events to controll the dragging of the sheet and we can instead use vertical drag gestures directly to control the sheet.

There is also added parameters to control the default scrollphysics of underlaying scrollable views, this lets us disable scrolling in the ScrollPhysics implementation from userspace.
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.

1 participant