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:
Nate Wilson
2024-07-08 13:06:54 -06:00
committed by GitHub
parent 0a4f1a7e55
commit b713445298
22 changed files with 80 additions and 80 deletions

View File

@@ -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),

View File

@@ -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),