Skip to content

Commit

Permalink
fix: Compatible with DarkTheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jan 11, 2023
1 parent e60b277 commit ce6669f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions packages/masamune/example/pubspec.lock
Expand Up @@ -419,7 +419,7 @@ packages:
path: "../../katana_storage"
relative: true
source: path
version: "1.1.0"
version: "1.1.1"
katana_theme:
dependency: "direct overridden"
description:
Expand Down Expand Up @@ -461,7 +461,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.0"
version: "1.2.2"
masamune_annotation:
dependency: "direct overridden"
description:
Expand Down Expand Up @@ -650,7 +650,7 @@ packages:
name: shared_preferences_macos
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
version: "2.0.5"
shared_preferences_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -823,7 +823,7 @@ packages:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0+2"
version: "0.2.0+3"
yaml:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions packages/masamune/lib/src/masamune_app.dart
Expand Up @@ -379,6 +379,7 @@ class MasamuneApp extends StatelessWidget {
localizationsDelegates: localize?.delegates(),
localeResolutionCallback: localize?.localeResolutionCallback(),
theme: theme?.toThemeData(),
darkTheme: theme?.copyWithInvert().toThemeData(),
scaffoldMessengerKey: scaffoldMessengerKey,
title: title,
onGenerateTitle: onGenerateTitle,
Expand All @@ -400,6 +401,7 @@ class MasamuneApp extends StatelessWidget {
localizationsDelegates: localize?.delegates(),
localeResolutionCallback: localize?.localeResolutionCallback(),
theme: theme?.toThemeData(),
darkTheme: theme?.copyWithInvert().toThemeData(),
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
showPerformanceOverlay: showPerformanceOverlay,
scaffoldMessengerKey: scaffoldMessengerKey,
Expand Down
6 changes: 3 additions & 3 deletions packages/masamune/pubspec.lock
Expand Up @@ -244,7 +244,7 @@ packages:
path: "../katana_storage"
relative: true
source: path
version: "1.1.0"
version: "1.1.1"
katana_theme:
dependency: "direct main"
description:
Expand Down Expand Up @@ -419,7 +419,7 @@ packages:
name: shared_preferences_macos
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
version: "2.0.5"
shared_preferences_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -536,7 +536,7 @@ packages:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0+2"
version: "0.2.0+3"
sdks:
dart: ">=2.18.0 <3.0.0"
flutter: ">=3.0.0"

0 comments on commit ce6669f

Please sign in to comment.