Unverified Commit 157660af authored by Hans Muller's avatar Hans Muller Committed by GitHub

Change the default for`ThemeData.useMaterial3` to true (#129724)

Changes the default for `ThemeData.useMaterial3` to true.

See https://github.com/flutter/flutter/issues/127064
parent 360ca44e
...@@ -439,7 +439,7 @@ class ThemeData with Diagnosticable { ...@@ -439,7 +439,7 @@ class ThemeData with Diagnosticable {
pageTransitionsTheme ??= const PageTransitionsTheme(); pageTransitionsTheme ??= const PageTransitionsTheme();
scrollbarTheme ??= const ScrollbarThemeData(); scrollbarTheme ??= const ScrollbarThemeData();
visualDensity ??= VisualDensity.defaultDensityForPlatform(platform); visualDensity ??= VisualDensity.defaultDensityForPlatform(platform);
useMaterial3 ??= false; useMaterial3 ??= true;
final bool useInkSparkle = platform == TargetPlatform.android && !kIsWeb; final bool useInkSparkle = platform == TargetPlatform.android && !kIsWeb;
splashFactory ??= useMaterial3 splashFactory ??= useMaterial3
? useInkSparkle ? InkSparkle.splashFactory : InkRipple.splashFactory ? useInkSparkle ? InkSparkle.splashFactory : InkRipple.splashFactory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment