Deprecate 2018 text theme parameters (#109817)
This commit is contained in:
@@ -69,7 +69,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
debugLabel: 'Scope',
|
||||
autofocus: true,
|
||||
child: DefaultTextStyle(
|
||||
style: textTheme.headline4!,
|
||||
style: textTheme.headlineMedium!,
|
||||
child: Focus(
|
||||
onKey: _handleKeyPress,
|
||||
debugLabel: 'Button',
|
||||
|
||||
@@ -119,7 +119,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
child: const Text('ANOTHER BUTTON TO FOCUS'),
|
||||
),
|
||||
DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.headline2!,
|
||||
style: Theme.of(context).textTheme.displayMedium!,
|
||||
child: const Text('BACKDROP')),
|
||||
],
|
||||
),
|
||||
@@ -148,7 +148,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
? null
|
||||
: () => setState(() => backdropIsVisible = true),
|
||||
child: DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.headline2!,
|
||||
style: Theme.of(context).textTheme.displayMedium!,
|
||||
child: const Text('FOREGROUND')),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user