Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Remove desktop scrollbars from shrine (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Piinks authored Sep 8, 2021
1 parent 860b616 commit 0812bd7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/studies/shrine/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ class _ShrineAppState extends State<ShrineApp>
child: WillPopScope(
onWillPop: _onWillPop,
child: 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/541
scrollBehavior:
const MaterialScrollBehavior().copyWith(scrollbars: false),
restorationScopeId: 'shrineApp',
title: 'Shrine',
debugShowCheckedModeBanner: false,
Expand Down

0 comments on commit 0812bd7

Please sign in to comment.