Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a1a360bf
Unverified
Commit
a1a360bf
authored
Jun 21, 2021
by
Kate Lovett
Committed by
GitHub
Jun 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable auto scrollbars on desktop for legacy flutter gallery (#84812)
parent
46c54668
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app.dart
dev/integration_tests/flutter_gallery/lib/gallery/app.dart
+5
-0
simple_smoke_test.dart
...gration_tests/flutter_gallery/test/simple_smoke_test.dart
+1
-1
No files found.
dev/integration_tests/flutter_gallery/lib/gallery/app.dart
View file @
a1a360bf
...
...
@@ -138,6 +138,11 @@ class _GalleryAppState extends State<GalleryApp> {
return
ScopedModel
<
AppStateModel
>(
model:
model
,
child:
MaterialApp
(
// The automatically applied scrollbars on desktop can cause a crash for
// demos where many scrollables are all attached to the same
// PrimaryScrollController. The gallery needs to be migrated before
// enabling this. https://github.com/flutter/gallery/issues/523
scrollBehavior:
const
MaterialScrollBehavior
().
copyWith
(
scrollbars:
false
),
theme:
kLightGalleryTheme
.
copyWith
(
platform:
_options
!.
platform
,
visualDensity:
_options
!.
visualDensity
!.
visualDensity
),
darkTheme:
kDarkGalleryTheme
.
copyWith
(
platform:
_options
!.
platform
,
visualDensity:
_options
!.
visualDensity
!.
visualDensity
),
themeMode:
_options
!.
themeMode
,
...
...
dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart
View file @
a1a360bf
...
...
@@ -55,5 +55,5 @@ void main() {
await
tester
.
pump
(
const
Duration
(
milliseconds:
200
));
await
tester
.
pump
(
const
Duration
(
hours:
100
));
// for testing
});
}
,
variant:
const
TargetPlatformVariant
(<
TargetPlatform
>{
TargetPlatform
.
android
,
TargetPlatform
.
macOS
})
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment