pub enum Scrollbars {
Never,
Always,
}Expand description
When a scroll area draws a scrollbar (app.dart:857).
The reference asks this question per platform and answers it no on every touch screen: a finger already knows where it is on the page, and a permanent bar over the content is a desktop affordance for a pointer that cannot feel the edges. Along the horizontal axis the answer is no everywhere, on every platform.
Variants§
Never
Never — what a touch screen gets (app.dart:870).
Always
One bar down the inner edge (app.dart:865), for the platforms whose own scroll
views have one.
Implementations§
Source§impl Scrollbars
impl Scrollbars
Sourcepub const fn platform_default() -> Self
pub const fn platform_default() -> Self
What the running platform expects: nothing on a touch screen, a bar on a desktop.
Resolved at compile time from the target, like
ScrollPhysics::platform_default beside it — a build is for one platform, and a
constant keeps the choice out of the frame loop.