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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user