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

Remove extra scrollbars in the modal sheet due to nested scroll views #58

Merged

Conversation

ulusoyca
Copy link
Collaborator

@ulusoyca ulusoyca commented Sep 9, 2023

Description:

Issue reported within #46

This PR addresses an issue where an extra scrollbar was being displayed in web and desktop apps when a nested scroll view was present within a modal page constructed with withSingleChild factory method.

Changes Made:

Wrapped the singleChildContent within a ScrollConfiguration widget the copy of the parent scroll behavior and changed the scrollbars to false for the descendants.

Before After
before.mov
after.mov

@ulusoyca ulusoyca force-pushed the issue-46-remove-extra-scrollbar-due-to-nested-scroll-views branch from 3f39514 to 37c2325 Compare September 9, 2023 13:16
top: 0,
child: WoltBottomSheetDragHandle(),
),
return Stack(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only change here is removing the parent.

@ulusoyca ulusoyca force-pushed the issue-46-remove-extra-scrollbar-due-to-nested-scroll-views branch from 37c2325 to ce8316a Compare September 9, 2023 16:50
@ulusoyca ulusoyca requested a review from TahaTesser September 9, 2023 17:04
Copy link
Collaborator

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

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

LGTM

@TahaTesser
Copy link
Collaborator

I remember making a similar change in one of the Flutter samples

@ulusoyca
Copy link
Collaborator Author

ulusoyca commented Sep 9, 2023

@TahaTesser Thanks for the review! Any idea about this exception? which is throwing needs layout exception when scrolling with drag gestures on desktop apps

@ulusoyca ulusoyca merged commit 767f4e4 into main Sep 9, 2023
@ulusoyca ulusoyca deleted the issue-46-remove-extra-scrollbar-due-to-nested-scroll-views branch September 9, 2023 17:08
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.

3 participants