Factor out deprecated names in example code (#151374)
This PR contains:
- 3 instances of `colorScheme.background` â `colorScheme.surface`
- and a whole bunch of `MaterialState` â `WidgetState`
As of yet, no changes have been made to example test files or the [examples/api/lib/material/material_state/](0b2a8e589e/examples/api/lib/material/material_state) directory.
(related: #151373)
This commit is contained in:
@@ -89,7 +89,7 @@ class _MyWidgetState extends State<MyWidget> {
|
||||
style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.white),
|
||||
child: RadioTheme(
|
||||
data: RadioThemeData(
|
||||
fillColor: MaterialStateProperty.all<Color>(Colors.white),
|
||||
fillColor: WidgetStateProperty.all<Color>(Colors.white),
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
|
||||
@@ -85,7 +85,7 @@ class _MyWidgetState extends State<MyWidget> {
|
||||
style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.white),
|
||||
child: RadioTheme(
|
||||
data: RadioThemeData(
|
||||
fillColor: MaterialStateProperty.all<Color>(Colors.white),
|
||||
fillColor: WidgetStateProperty.all<Color>(Colors.white),
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
|
||||
Reference in New Issue
Block a user