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:
@@ -50,11 +50,13 @@ class StocksAppState extends State<StocksApp> {
|
||||
switch (_configuration.stockMode) {
|
||||
case StockMode.optimistic:
|
||||
return ThemeData(
|
||||
useMaterial3: false,
|
||||
brightness: Brightness.light,
|
||||
primarySwatch: Colors.purple,
|
||||
);
|
||||
case StockMode.pessimistic:
|
||||
return ThemeData(
|
||||
useMaterial3: false,
|
||||
brightness: Brightness.dark,
|
||||
primarySwatch: Colors.purple,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user