Unverified Commit 1e822ca2 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Disable debug banner to stabilize impeller goldens. (#143794)

Fixes some of https://github.com/flutter/flutter/issues/143616 by disabling the debug banner, which does not appear to be a critical part of the golden.
parent f9b3b84d
...@@ -2797,6 +2797,7 @@ void main() { ...@@ -2797,6 +2797,7 @@ void main() {
testWidgets('Material2 - SnackBars should be shown above the bottomSheet', (WidgetTester tester) async { testWidgets('Material2 - SnackBars should be shown above the bottomSheet', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
...@@ -3142,6 +3143,7 @@ void main() { ...@@ -3142,6 +3143,7 @@ void main() {
// Regression test for https://github.com/flutter/flutter/issues/98205 // Regression test for https://github.com/flutter/flutter/issues/98205
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: Scaffold( home: Scaffold(
body: const Scaffold(), body: const Scaffold(),
floatingActionButton: FloatingActionButton(onPressed: () {}), floatingActionButton: FloatingActionButton(onPressed: () {}),
...@@ -3175,6 +3177,7 @@ void main() { ...@@ -3175,6 +3177,7 @@ void main() {
// Regression test for https://github.com/flutter/flutter/issues/98205 // Regression test for https://github.com/flutter/flutter/issues/98205
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: true), theme: ThemeData(useMaterial3: true),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: Scaffold( home: Scaffold(
body: const Scaffold(), body: const Scaffold(),
floatingActionButton: FloatingActionButton(onPressed: () {}), floatingActionButton: FloatingActionButton(onPressed: () {}),
...@@ -3207,6 +3210,7 @@ void main() { ...@@ -3207,6 +3210,7 @@ void main() {
testWidgets('Floating snackbar can display optional icon', (WidgetTester tester) async { testWidgets('Floating snackbar can display optional icon', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3239,6 +3243,7 @@ void main() { ...@@ -3239,6 +3243,7 @@ void main() {
testWidgets('Material2 - Fixed width snackbar can display optional icon', (WidgetTester tester) async { testWidgets('Material2 - Fixed width snackbar can display optional icon', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3266,6 +3271,7 @@ void main() { ...@@ -3266,6 +3271,7 @@ void main() {
testWidgets('Material3 - Fixed width snackbar can display optional icon', (WidgetTester tester) async { testWidgets('Material3 - Fixed width snackbar can display optional icon', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: true), theme: ThemeData(useMaterial3: true),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3293,6 +3299,7 @@ void main() { ...@@ -3293,6 +3299,7 @@ void main() {
testWidgets('Material2 - Fixed snackbar can display optional icon without action', (WidgetTester tester) async { testWidgets('Material2 - Fixed snackbar can display optional icon without action', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3321,6 +3328,7 @@ void main() { ...@@ -3321,6 +3328,7 @@ void main() {
testWidgets('Material3 - Fixed snackbar can display optional icon without action', (WidgetTester tester) async { testWidgets('Material3 - Fixed snackbar can display optional icon without action', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: true), theme: ThemeData(useMaterial3: true),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3349,6 +3357,7 @@ void main() { ...@@ -3349,6 +3357,7 @@ void main() {
testWidgets('Material2 - Floating width snackbar can display optional icon without action', (WidgetTester tester) async { testWidgets('Material2 - Floating width snackbar can display optional icon without action', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3375,6 +3384,7 @@ void main() { ...@@ -3375,6 +3384,7 @@ void main() {
testWidgets('Material3 - Floating width snackbar can display optional icon without action', (WidgetTester tester) async { testWidgets('Material3 - Floating width snackbar can display optional icon without action', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: true), theme: ThemeData(useMaterial3: true),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3401,6 +3411,7 @@ void main() { ...@@ -3401,6 +3411,7 @@ void main() {
testWidgets('Material2 - Floating multi-line snackbar with icon is aligned correctly', (WidgetTester tester) async { testWidgets('Material2 - Floating multi-line snackbar with icon is aligned correctly', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3428,6 +3439,7 @@ void main() { ...@@ -3428,6 +3439,7 @@ void main() {
testWidgets('Material3 - Floating multi-line snackbar with icon is aligned correctly', (WidgetTester tester) async { testWidgets('Material3 - Floating multi-line snackbar with icon is aligned correctly', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: true), theme: ThemeData(useMaterial3: true),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3455,6 +3467,7 @@ void main() { ...@@ -3455,6 +3467,7 @@ void main() {
testWidgets('Material2 - Floating multi-line snackbar with icon and actionOverflowThreshold=1 is aligned correctly', (WidgetTester tester) async { testWidgets('Material2 - Floating multi-line snackbar with icon and actionOverflowThreshold=1 is aligned correctly', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: false), theme: ThemeData(useMaterial3: false),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
...@@ -3485,6 +3498,7 @@ void main() { ...@@ -3485,6 +3498,7 @@ void main() {
testWidgets('Material3 - Floating multi-line snackbar with icon and actionOverflowThreshold=1 is aligned correctly', (WidgetTester tester) async { testWidgets('Material3 - Floating multi-line snackbar with icon and actionOverflowThreshold=1 is aligned correctly', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
theme: ThemeData(useMaterial3: true), theme: ThemeData(useMaterial3: true),
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
home: const Scaffold( home: const Scaffold(
bottomSheet: SizedBox( bottomSheet: SizedBox(
width: 200, width: 200,
......
...@@ -405,6 +405,7 @@ Future<void> _buildValueIndicatorStaticSlider( ...@@ -405,6 +405,7 @@ Future<void> _buildValueIndicatorStaticSlider(
}) async { }) async {
await tester.pumpWidget( await tester.pumpWidget(
MaterialApp( MaterialApp(
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
theme: ThemeData(useMaterial3: useMaterial3), theme: ThemeData(useMaterial3: useMaterial3),
home: Scaffold( home: Scaffold(
body: Builder( body: Builder(
......
...@@ -40,6 +40,7 @@ void main() { ...@@ -40,6 +40,7 @@ void main() {
child: ColorFiltered( child: ColorFiltered(
colorFilter: sepia, colorFilter: sepia,
child: MaterialApp( child: MaterialApp(
debugShowCheckedModeBanner: false, // https://github.com/flutter/flutter/issues/143616
title: 'Flutter Demo', title: 'Flutter Demo',
theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: false), theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: false),
home: Scaffold( home: Scaffold(
......
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