You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scrollbars should be always visible and instantiated by default on web and desktop #40107
As mentioned in #38795, the the browser's scrollbar isn't currently visible when content can be scrolled. Ideally, we'd show the scrollbar when content can be scrolled otherwise this breaks users expectations on the platform.
Any active development is in progress for this feature. We are using Flutter widget as a component in existing web page but the issue is it is disabling browser scrollbar.
I am trying to get a clarification since there is no milestone setup for the Flutter for the web to have the default scrollbar visible. Is this something that is planned for Flutter for the web to handle?
I am trying to get a clarification since there is no milestone setup for the Flutter for the web to have the default scrollbar visible. Is this something that is planned for Flutter for the web to handle?
Thank you.
You'll just have to follow this issue to keep track of the progress. Since there is no milestone assigned it likely isn't at the top of the list and/or it isn't easy to implement. So I'd say at this point, I wouldn't expect this to get resolved anytime soon.
That's a big issue to address. I picked up flutter with the goal of rendering "web first" and then other devices. Meaning that if web does not work for me it's a big issue. My MVP depends on web working successfully in the early MVP life time and less so on the mobile platforms. Scrolls are super important for UX. I find this is an essential feature to have for the web. Please add priority to this request.
Reacted by Adrian Moisa, Kalvin Pearce, pavelpz, Boris, Breno Teodoro, amirzolal, Hemant Kumar, Jan Budař, Jetsadakorn Maliwan, Sun and 12 more
Reacted by creativecreatorormaybenot
Reacted by Adrian Moisa, Kalvin Pearce and amirzolal
On some platforms (Windows) there is a system preference for if scrollbars should auto-hide or not.
I understand we are not having scrollbars at all and respecting settings like this one is the cherry on top. But just pointing out that this system setting exist. Similar to how an app preferable respect system dark mode setting.
I have a proposed solution in #75354
Although I am not sure this is the best idea to implement so I'm requesting any feedback or input. :)
Here are my concerns with auto-generated Scrollbars:
users will be annoyed by Scrollbars showing up where they are not wanted
users that are already using Scrollbars on desktop/web will be broken by duped Scrollbars (if the user implements a Scrollbar, ti will be duped by the auto-scrollbar)
users implementing or extending ScrollBehavior.buildViewportChrome will be broken
creating scrollbars on mobile will require the user to add special handling when their app in on web/desktop, lest be affected by the duped scrollbar exception mentioned above
or they could turn off autoScrollbars all together and have no issue - which I think kind of nullifies the point of this feature.
Also, I don't think we can automatically detect a Scrollbar created by the user. They can be placed anywhere in the tree, and even if we could track them all down, we would need to distinguish which were made automatically and which were user generated.
Also, there is already a pattern of use where the Scrollbar listens to more than one Scrollable. I've seen this most often with 2D scrolling.
Please see the change (#75354) for more context. All input is welcome while we try to decide the best way to proceed here. :)
Our first priority is to our developer's user, the end user. Our second priority is to our user, the developer.
On desktop and desktop web end users of software use a vairity of input devices. A mouse with a scroll wheel is common, but it cannot be expected that every user has that. For example I use a trackball which do not have a scroll wheel, instead I use the scroll bars and hold a button and scroll by rolling the ball which has infinite movement by design. Other users may be using other devices for accessibility like voice control with eye mouse or a grid mouse.
Basically, there are a vast vairity of users out there and not every developer is able to understand or anticipate the impact of not adding a scroll bar to their app. So the framework need to be accessible by default in order for most apps to have good accessibility. Then of course I'm not against flags to allow a developer to hide scrollbars if their app is a digital signage app or other situation where they know the scrollbar is not desired. But I think developers should need to opt-out of it. Which could be as simple as a property with a default value.
Reacted by creativecreatorormaybenot, Shatanik Mahanty, Kate Lovett and Mark Muhleder
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
sudip4036 commentedon Dec 12, 2019
Any active development is in progress for this feature. We are using Flutter widget as a component in existing web page but the issue is it is disabling browser scrollbar.
Sun3 commentedon Sep 18, 2020
I am trying to get a clarification since there is no milestone setup for the Flutter for the web to have the default scrollbar visible. Is this something that is planned for Flutter for the web to handle?
Thank you.
jaredbaszler commentedon Sep 18, 2020
You'll just have to follow this issue to keep track of the progress. Since there is no milestone assigned it likely isn't at the top of the list and/or it isn't easy to implement. So I'd say at this point, I wouldn't expect this to get resolved anytime soon.
Sun3 commentedon Sep 18, 2020
@jaredbaszler Thanks...
adrian-moisa commentedon Oct 4, 2020
That's a big issue to address. I picked up flutter with the goal of rendering "web first" and then other devices. Meaning that if web does not work for me it's a big issue. My MVP depends on web working successfully in the early MVP life time and less so on the mobile platforms. Scrolls are super important for UX. I find this is an essential feature to have for the web. Please add priority to this request.
20 remaining items
ganeshrvel commentedon Jan 20, 2021
The app fails while trying to drag the Scrollbar when used with
SliverList.Code:
Screen recordings:
My observation:
Error:
flutter --version
flutter doctor
Piinks commentedon Jan 20, 2021
@ganeshrvel can you please file a new issue with a reproduction of your issue? This issue for for a separate feature. Thank you!
ganeshrvel commentedon Jan 21, 2021
@Piinks created: #74404
arualana commentedon Jan 23, 2021
If it when needed, then it is not always visible
Leffe108 commentedon Jan 24, 2021
On some platforms (Windows) there is a system preference for if scrollbars should auto-hide or not.
I understand we are not having scrollbars at all and respecting settings like this one is the cherry on top. But just pointing out that this system setting exist. Similar to how an app preferable respect system dark mode setting.
Piinks commentedon Feb 4, 2021
I have a proposed solution in #75354
Although I am not sure this is the best idea to implement so I'm requesting any feedback or input. :)
Here are my concerns with auto-generated Scrollbars:
Also, I don't think we can automatically detect a Scrollbar created by the user. They can be placed anywhere in the tree, and even if we could track them all down, we would need to distinguish which were made automatically and which were user generated.
Also, there is already a pattern of use where the Scrollbar listens to more than one Scrollable. I've seen this most often with 2D scrolling.
Please see the change (#75354) for more context. All input is welcome while we try to decide the best way to proceed here. :)
Leffe108 commentedon Feb 6, 2021
In response to request for comments.
Your values state:
On desktop and desktop web end users of software use a vairity of input devices. A mouse with a scroll wheel is common, but it cannot be expected that every user has that. For example I use a trackball which do not have a scroll wheel, instead I use the scroll bars and hold a button and scroll by rolling the ball which has infinite movement by design. Other users may be using other devices for accessibility like voice control with eye mouse or a grid mouse.
Basically, there are a vast vairity of users out there and not every developer is able to understand or anticipate the impact of not adding a scroll bar to their app. So the framework need to be accessible by default in order for most apps to have good accessibility. Then of course I'm not against flags to allow a developer to hide scrollbars if their app is a digital signage app or other situation where they know the scrollbar is not desired. But I think developers should need to opt-out of it. Which could be as simple as a property with a default value.
Macacoazul01 commentedon Feb 10, 2021
@Piinks is there any expected date to your pr being implemented on any of the branchs?
Sun3 commentedon Feb 15, 2021
I am also looking for an update, especially for Flutter Web. I have a production app that really needs this feature.
Thank you.
github-actions commentedon Aug 3, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.