1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

remove useMaterial3 (#2579)

This PR removes redundant `useMaterial3` since it is true by default.

Fixes https://github.com/flutter/flutter/issues/162818

If you need help, consider asking for advice on the #hackers-devrel channel on [Discord].
This commit is contained in:
Sangam Shrestha
2025-02-13 09:18:57 +05:45
committed by GitHub
parent 9fef1332f3
commit 04aea26b6a

View File

@@ -41,7 +41,6 @@ abstract final class AppTheme {
); );
static ThemeData lightTheme = ThemeData( static ThemeData lightTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.light, brightness: Brightness.light,
colorScheme: AppColors.lightColorScheme, colorScheme: AppColors.lightColorScheme,
textTheme: _textTheme, textTheme: _textTheme,
@@ -55,7 +54,6 @@ abstract final class AppTheme {
); );
static ThemeData darkTheme = ThemeData( static ThemeData darkTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.dark, brightness: Brightness.dark,
colorScheme: AppColors.darkColorScheme, colorScheme: AppColors.darkColorScheme,
textTheme: _textTheme, textTheme: _textTheme,