Skip to content

Commit f5b65ba

Browse files
Remove deprecated TextTheme members (flutter#139255)
Part of: flutter#143956
1 parent 2079f34 commit f5b65ba

File tree

9 files changed

+81
-337
lines changed

9 files changed

+81
-337
lines changed

examples/api/lib/widgets/value_listenable_builder/value_listenable_builder.0.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class CountDisplay extends StatelessWidget {
8888
width: 100,
8989
height: 100,
9090
padding: const EdgeInsetsDirectional.all(10),
91-
child: Text('$count', style: Theme.of(context).textTheme.headline4),
91+
child: Text('$count', style: Theme.of(context).textTheme.headlineMedium),
9292
);
9393
}
9494
}

packages/flutter/lib/src/material/button_theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class ButtonThemeData with Diagnosticable {
381381
/// minimum size, internal padding, and shape.
382382
///
383383
/// Despite the name, this property is not the [TextTheme] whose
384-
/// [TextTheme.button] is used as the button text's [TextStyle].
384+
/// [TextTheme.labelLarge] is used as the button text's [TextStyle].
385385
ButtonTextTheme getTextTheme(MaterialButton button) => button.textTheme ?? textTheme;
386386

387387
/// The foreground color of the [button]'s text and icon when

packages/flutter/lib/src/material/popup_menu.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ class _PopupMenuDefaultsM2 extends PopupMenuThemeData {
15071507
late final TextTheme _textTheme = _theme.textTheme;
15081508

15091509
@override
1510-
TextStyle? get textStyle => _textTheme.subtitle1;
1510+
TextStyle? get textStyle => _textTheme.titleMedium;
15111511

15121512
static EdgeInsets menuHorizontalPadding = const EdgeInsets.symmetric(horizontal: 16.0);
15131513
}

0 commit comments

Comments
 (0)