Unverified Commit 68836dea authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Fix shrine (#89698)

parent e8639470
...@@ -37,6 +37,11 @@ class _ShrineAppState extends State<ShrineApp> with SingleTickerProviderStateMix ...@@ -37,6 +37,11 @@ class _ShrineAppState extends State<ShrineApp> with SingleTickerProviderStateMix
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return 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),
title: 'Shrine', title: 'Shrine',
home: HomePage( home: HomePage(
backdrop: Backdrop( backdrop: Backdrop(
......
...@@ -176,7 +176,11 @@ Future<void> smokeGallery(WidgetTester tester) async { ...@@ -176,7 +176,11 @@ Future<void> smokeGallery(WidgetTester tester) async {
} }
void main() { void main() {
testWidgets('Flutter Gallery app smoke test', smokeGallery); testWidgets(
'Flutter Gallery app smoke test',
smokeGallery,
variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.android, TargetPlatform.macOS }),
);
testWidgets('Flutter Gallery app smoke test with semantics', (WidgetTester tester) async { testWidgets('Flutter Gallery app smoke test with semantics', (WidgetTester tester) async {
RendererBinding.instance!.setSemanticsEnabled(true); RendererBinding.instance!.setSemanticsEnabled(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment