From c85838804a7daa6866f701396c8d8b7218a0a7ab Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Thu, 17 Jun 2021 12:01:23 -0500 Subject: [PATCH] Disable desktop scrollbars (#524) --- lib/main.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 50bed89083..1fcf2b4367 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -47,6 +47,12 @@ class GalleryApp extends StatelessWidget { child: Builder( builder: (context) { return MaterialApp( + // By default on desktop, scrollbars are applied by the + // ScrollBehavior. This overrides that. All vertical scrollables in + // the gallery need to be audited before enabling this feature, + // see https://github.com/flutter/gallery/issues/523 + scrollBehavior: + const MaterialScrollBehavior().copyWith(scrollbars: false), restorationScopeId: 'rootGallery', title: 'Flutter Gallery', debugShowCheckedModeBanner: false,