Skip to content

Commit

Permalink
app+test: ignore deprecated_member_use in two places
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto authored and torkelrogstad committed Oct 28, 2023
1 parent 3b01947 commit c7b092e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class SailAppState extends State<SailApp> 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;
Expand Down
1 change: 1 addition & 0 deletions test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit c7b092e

Please sign in to comment.