remove debug banner on screenshots.

This commit is contained in:
Thomas SharedInbox
2026-06-04 16:42:42 +02:00
parent 2137d25d6d
commit 4a07a175b9
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -324,6 +324,7 @@ void main() {
setDevice(tester); setDevice(tester);
await tester.pumpWidget( await tester.pumpWidget(
buildApp( buildApp(
debugShowCheckedModeBanner: false,
initialLocation: '/accounts/acc-1/mailboxes/INBOX/emails', initialLocation: '/accounts/acc-1/mailboxes/INBOX/emails',
overrides: _inboxOverrides(), overrides: _inboxOverrides(),
themeMode: themeMode, themeMode: themeMode,
@@ -360,6 +361,7 @@ void main() {
// so GoRouter can pass them to ComposeScreen via state.extra. // so GoRouter can pass them to ComposeScreen via state.extra.
await tester.pumpWidget( await tester.pumpWidget(
buildApp( buildApp(
debugShowCheckedModeBanner: false,
initialLocation: '/accounts/acc-1/mailboxes/INBOX/emails', initialLocation: '/accounts/acc-1/mailboxes/INBOX/emails',
overrides: _composeOverrides(), overrides: _composeOverrides(),
themeMode: themeMode, themeMode: themeMode,
@@ -387,6 +389,7 @@ void main() {
setDevice(tester); setDevice(tester);
await tester.pumpWidget( await tester.pumpWidget(
buildApp( buildApp(
debugShowCheckedModeBanner: false,
initialLocation: '/accounts/acc-1/mailboxes', initialLocation: '/accounts/acc-1/mailboxes',
overrides: _mailboxOverrides(), overrides: _mailboxOverrides(),
themeMode: themeMode, themeMode: themeMode,
@@ -403,6 +406,7 @@ void main() {
setDevice(tester); setDevice(tester);
await tester.pumpWidget( await tester.pumpWidget(
buildApp( buildApp(
debugShowCheckedModeBanner: false,
initialLocation: '/accounts/acc-1/mailboxes/INBOX/emails', initialLocation: '/accounts/acc-1/mailboxes/INBOX/emails',
overrides: _searchOverrides(), overrides: _searchOverrides(),
themeMode: themeMode, themeMode: themeMode,
+2
View File
@@ -422,6 +422,7 @@ Widget buildApp({
required List<Override> overrides, required List<Override> overrides,
UserPreferencesRepository? userPreferences, UserPreferencesRepository? userPreferences,
ThemeMode themeMode = ThemeMode.light, ThemeMode themeMode = ThemeMode.light,
bool debugShowCheckedModeBanner = true,
}) { }) {
final testRouter = GoRouter( final testRouter = GoRouter(
initialLocation: initialLocation, initialLocation: initialLocation,
@@ -546,6 +547,7 @@ Widget buildApp({
child: MaterialApp.router( child: MaterialApp.router(
routerConfig: testRouter, routerConfig: testRouter,
themeMode: themeMode, themeMode: themeMode,
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
theme: ThemeData( theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo), colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo),
useMaterial3: true, useMaterial3: true,