Skip to content

Commit

Permalink
Let's prepare for the upcoming release
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Aug 21, 2023
1 parent fafafd7 commit 986b192
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
17 changes: 13 additions & 4 deletions packages/smooth_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,18 @@ class _SmoothAppState extends State<SmoothApp> {
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
debugShowCheckedModeBanner: !(kReleaseMode || _screenshots),
theme: SmoothTheme.getThemeData(Brightness.light, themeProvider,
colorProvider, textContrastProvider),
darkTheme: SmoothTheme.getThemeData(Brightness.dark, themeProvider,
colorProvider, textContrastProvider),
theme: SmoothTheme.getThemeData(
Brightness.light,
themeProvider,
colorProvider,
textContrastProvider,
),
darkTheme: SmoothTheme.getThemeData(
Brightness.dark,
themeProvider,
colorProvider,
textContrastProvider,
),
themeMode: themeProvider.currentThemeMode,
routerConfig: AppNavigator.of(context).router,
),
Expand All @@ -267,6 +275,7 @@ class _SmoothAppState extends State<SmoothApp> {

Widget _buildError(AsyncSnapshot<void> snapshot) {
return MaterialApp(
theme: ThemeData(useMaterial3: false),
home: SmoothScaffold(
body: Center(
child: Text(
Expand Down
1 change: 1 addition & 0 deletions packages/smooth_app/lib/themes/smooth_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SmoothTheme {
}

return ThemeData(
useMaterial3: false,
primaryColor: const Color(0xFF341100),
colorScheme: myColorScheme,
canvasColor: themeProvider.currentTheme == THEME_AMOLED
Expand Down

0 comments on commit 986b192

Please sign in to comment.