Default Scrollbars on Desktop

Summary

Context

Description of change

Migration guide

Removing manual Scrollbars on desktop
Setting a custom ScrollBehavior for your application
Setting a custom ScrollBehavior for a specific widget
Copy and modify existing ScrollBehavior

Timeline

References

Summary

ScrollBehaviors now automatically apply Scrollbars to
scrolling widgets on desktop platforms - Mac, Windows and Linux.

Context

Prior to this change, Scrollbars were applied to scrolling widgets
manually by the developer across all platforms. This did not match
developer expectations when executing Flutter applications on desktop platforms.

Now, the inherited ScrollBehavior applies a Scrollbar automatically
to most scrolling widgets. This is similar to how GlowingOverscrollIndicator
is created by ScrollBehavior. The few widgets that are exempt from this
behavior are listed below.