Skip to content

Commit

Permalink
fix: Enabled to change the color of AppBar when scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Mar 5, 2023
1 parent 8d87118 commit aac1cce
Show file tree
Hide file tree
Showing 2 changed files with 286 additions and 119 deletions.
8 changes: 4 additions & 4 deletions packages/masamune/lib/src/masamune_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ class MasamuneApp extends StatelessWidget {
supportedLocales: localize?.supportedLocales() ?? kDefaultLocales,
localizationsDelegates: localize?.delegates(),
localeResolutionCallback: localize?.localeResolutionCallback(),
theme: theme?.toThemeData(),
darkTheme: theme?.copyWithInvert().toThemeData(),
theme: theme?.toThemeData(brightness: Brightness.light),
darkTheme: theme?.toThemeData(brightness: Brightness.dark),
scaffoldMessengerKey: scaffoldMessengerKey,
title: title,
onGenerateTitle: onGenerateTitle,
Expand Down Expand Up @@ -574,8 +574,8 @@ class MasamuneApp extends StatelessWidget {
supportedLocales: localize?.supportedLocales() ?? kDefaultLocales,
localizationsDelegates: localize?.delegates(),
localeResolutionCallback: localize?.localeResolutionCallback(),
theme: theme?.toThemeData(),
darkTheme: theme?.copyWithInvert().toThemeData(),
theme: theme?.toThemeData(brightness: Brightness.light),
darkTheme: theme?.toThemeData(brightness: Brightness.dark),
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
showPerformanceOverlay: showPerformanceOverlay,
scaffoldMessengerKey: scaffoldMessengerKey,
Expand Down

0 comments on commit aac1cce

Please sign in to comment.