Dev, examples/api, etc updated for Material 3 by default (#129683)
Updated tests in dev, examples/api, and tests/widgets to ensure that they continue to pass when the default for `ThemeData.useMaterial3` is changed to true. This is the final set of changes required for https://github.com/flutter/flutter/issues/127064.
This commit is contained in:
@@ -104,6 +104,7 @@ class ContactsDemoState extends State<ContactsDemo> {
|
||||
Widget build(BuildContext context) {
|
||||
return Theme(
|
||||
data: ThemeData(
|
||||
useMaterial3: false,
|
||||
brightness: Brightness.light,
|
||||
primarySwatch: Colors.indigo,
|
||||
platform: Theme.of(context).platform,
|
||||
|
||||
@@ -26,6 +26,7 @@ ThemeData _buildDarkTheme() {
|
||||
background: const Color(0xFF202124),
|
||||
);
|
||||
final ThemeData base = ThemeData(
|
||||
useMaterial3: false,
|
||||
brightness: Brightness.dark,
|
||||
colorScheme: colorScheme,
|
||||
primaryColor: primaryColor,
|
||||
@@ -50,6 +51,7 @@ ThemeData _buildLightTheme() {
|
||||
error: const Color(0xFFB00020),
|
||||
);
|
||||
final ThemeData base = ThemeData(
|
||||
useMaterial3: false,
|
||||
brightness: Brightness.light,
|
||||
colorScheme: colorScheme,
|
||||
primaryColor: primaryColor,
|
||||
|
||||
Reference in New Issue
Block a user