From c7b092e5740a1db92f730bc9d79f68d8eb0cd262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Olav?= Date: Sat, 28 Oct 2023 15:58:43 +0200 Subject: [PATCH] app+test: ignore deprecated_member_use in two places --- lib/app.dart | 1 + test/test_utils.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/app.dart b/lib/app.dart index b3b23523..4f39297b 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -57,6 +57,7 @@ class SailAppState extends State with WidgetsBindingObserver { void loadTheme([SailThemeValues? themeToLoad]) async { themeToLoad ??= (await settings.getValue(ThemeSetting())).value; if (themeToLoad == SailThemeValues.platform) { + // ignore: deprecated_member_use themeToLoad = WidgetsBinding.instance.window.platformBrightness == Brightness.light // ? SailThemeValues.light : SailThemeValues.dark; diff --git a/test/test_utils.dart b/test/test_utils.dart index 10fd7767..a46b4f72 100644 --- a/test/test_utils.dart +++ b/test/test_utils.dart @@ -36,6 +36,7 @@ extension TestExtension on WidgetTester { return MaterialApp.router( routerDelegate: appRouter.delegate( + // ignore: deprecated_member_use initialRoutes: [SailTestRoute(child: child)], ), routeInformationParser: appRouter.defaultRouteParser(),