Skip to content

Commit

Permalink
Disable new Material 3 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed May 18, 2024
1 parent 652acd1 commit cf22bd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flutter/lib/ui/home/app_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class AppDrawer extends StatelessWidget {
backgroundColor: AppColors.drawerBackground,
child: Theme(
data: Theme.of(context).copyWith(
// TODO: https://docs.flutter.dev/release/breaking-changes/material-3-migration
// ignore: deprecated_member_use
useMaterial3: false,
textTheme: Theme.of(context).textTheme.apply(
bodyColor: AppColors.drawerForeground,
displayColor: AppColors.drawerForeground,
Expand Down
3 changes: 3 additions & 0 deletions flutter/lib/ui/root/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class MyApp extends StatelessWidget {
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
theme: Theme.of(context).copyWith(
// TODO: https://docs.flutter.dev/release/breaking-changes/material-3-migration
// ignore: deprecated_member_use
useMaterial3: false,
colorScheme: ColorScheme.fromSwatch().copyWith(
primary: AppColors.primary,
secondary: AppColors.secondary,
Expand Down

0 comments on commit cf22bd1

Please sign in to comment.