@@ -201,11 +201,6 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
201
201
this .brightness,
202
202
this .iconTheme,
203
203
this .actionsIconTheme,
204
- @Deprecated (
205
- 'This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. '
206
- 'This feature was deprecated after v2.4.0-0.0.pre.' ,
207
- )
208
- this .textTheme,
209
204
this .primary = true ,
210
205
this .centerTitle,
211
206
this .excludeHeaderSemantics = false ,
@@ -612,23 +607,6 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
612
607
/// * [iconTheme] , which defines the appearance of all of the toolbar icons.
613
608
final IconThemeData ? actionsIconTheme;
614
609
615
- /// {@template flutter.material.appbar.textTheme}
616
- /// This property is deprecated, please use [toolbarTextStyle] and
617
- /// [titleTextStyle] instead.
618
- ///
619
- /// The typographic styles to use for text in the app bar. Typically this is
620
- /// set along with [backgroundColor] , [iconTheme] .
621
- ///
622
- /// If this property is null, then [AppBarTheme.textTheme] of
623
- /// [ThemeData.appBarTheme] is used. If that is also null, then
624
- /// [ThemeData.primaryTextTheme] is used.
625
- /// {@endtemplate}
626
- @Deprecated (
627
- 'This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. '
628
- 'This feature was deprecated after v2.4.0-0.0.pre.' ,
629
- )
630
- final TextTheme ? textTheme;
631
-
632
610
/// {@template flutter.material.appbar.primary}
633
611
/// Whether this app bar is being displayed at the top of the screen.
634
612
///
@@ -715,7 +693,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
715
693
///
716
694
/// If true, preserves the original defaults for the [backgroundColor] ,
717
695
/// [iconTheme] , [actionsIconTheme] properties, and the original use of
718
- /// the [textTheme] and [ brightness] properties .
696
+ /// the [brightness] property .
719
697
///
720
698
/// If this property is null, then [AppBarTheme.backwardsCompatibility] of
721
699
/// [ThemeData.appBarTheme] is used. If that is also null, the default
@@ -968,16 +946,16 @@ class _AppBarState extends State<AppBar> {
968
946
?? overallIconTheme;
969
947
970
948
TextStyle ? toolbarTextStyle = backwardsCompatibility
971
- ? widget.textTheme ? .bodyMedium
972
- ?? appBarTheme.textTheme ? .bodyMedium
949
+ ? widget.toolbarTextStyle
950
+ ?? appBarTheme.toolbarTextStyle
973
951
?? theme.primaryTextTheme.bodyMedium
974
952
: widget.toolbarTextStyle
975
953
?? appBarTheme.toolbarTextStyle
976
954
?? defaults.toolbarTextStyle? .copyWith (color: foregroundColor);
977
955
978
956
TextStyle ? titleTextStyle = backwardsCompatibility
979
- ? widget.textTheme ? .titleLarge
980
- ?? appBarTheme.textTheme ? .titleLarge
957
+ ? widget.titleTextStyle
958
+ ?? appBarTheme.titleTextStyle
981
959
?? theme.primaryTextTheme.titleLarge
982
960
: widget.titleTextStyle
983
961
?? appBarTheme.titleTextStyle
@@ -1294,7 +1272,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
1294
1272
required this .brightness,
1295
1273
required this .iconTheme,
1296
1274
required this .actionsIconTheme,
1297
- required this .textTheme,
1298
1275
required this .primary,
1299
1276
required this .centerTitle,
1300
1277
required this .excludeHeaderSemantics,
@@ -1335,7 +1312,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
1335
1312
final Brightness ? brightness;
1336
1313
final IconThemeData ? iconTheme;
1337
1314
final IconThemeData ? actionsIconTheme;
1338
- final TextTheme ? textTheme;
1339
1315
final bool primary;
1340
1316
final bool ? centerTitle;
1341
1317
final bool excludeHeaderSemantics;
@@ -1412,7 +1388,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
1412
1388
brightness: brightness,
1413
1389
iconTheme: iconTheme,
1414
1390
actionsIconTheme: actionsIconTheme,
1415
- textTheme: textTheme,
1416
1391
primary: primary,
1417
1392
centerTitle: centerTitle,
1418
1393
excludeHeaderSemantics: excludeHeaderSemantics,
@@ -1448,7 +1423,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
1448
1423
|| brightness != oldDelegate.brightness
1449
1424
|| iconTheme != oldDelegate.iconTheme
1450
1425
|| actionsIconTheme != oldDelegate.actionsIconTheme
1451
- || textTheme != oldDelegate.textTheme
1452
1426
|| primary != oldDelegate.primary
1453
1427
|| centerTitle != oldDelegate.centerTitle
1454
1428
|| titleSpacing != oldDelegate.titleSpacing
@@ -1588,11 +1562,6 @@ class SliverAppBar extends StatefulWidget {
1588
1562
this .brightness,
1589
1563
this .iconTheme,
1590
1564
this .actionsIconTheme,
1591
- @Deprecated (
1592
- 'This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. '
1593
- 'This feature was deprecated after v2.4.0-0.0.pre.' ,
1594
- )
1595
- this .textTheme,
1596
1565
this .primary = true ,
1597
1566
this .centerTitle,
1598
1567
this .excludeHeaderSemantics = false ,
@@ -1915,15 +1884,6 @@ class SliverAppBar extends StatefulWidget {
1915
1884
/// This property is used to configure an [AppBar] .
1916
1885
final IconThemeData ? actionsIconTheme;
1917
1886
1918
- /// {@macro flutter.material.appbar.textTheme}
1919
- ///
1920
- /// This property is used to configure an [AppBar] .
1921
- @Deprecated (
1922
- 'This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. '
1923
- 'This feature was deprecated after v2.4.0-0.0.pre.' ,
1924
- )
1925
- final TextTheme ? textTheme;
1926
-
1927
1887
/// {@macro flutter.material.appbar.primary}
1928
1888
///
1929
1889
/// This property is used to configure an [AppBar] .
@@ -2192,7 +2152,6 @@ class _SliverAppBarState extends State<SliverAppBar> with TickerProviderStateMix
2192
2152
brightness: widget.brightness,
2193
2153
iconTheme: widget.iconTheme,
2194
2154
actionsIconTheme: widget.actionsIconTheme,
2195
- textTheme: widget.textTheme,
2196
2155
primary: widget.primary,
2197
2156
centerTitle: widget.centerTitle,
2198
2157
excludeHeaderSemantics: widget.excludeHeaderSemantics,
0 commit comments