@@ -201,11 +201,6 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
201201 this .brightness,
202202 this .iconTheme,
203203 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,
209204 this .primary = true ,
210205 this .centerTitle,
211206 this .excludeHeaderSemantics = false ,
@@ -612,23 +607,6 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
612607 /// * [iconTheme] , which defines the appearance of all of the toolbar icons.
613608 final IconThemeData ? actionsIconTheme;
614609
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-
632610 /// {@template flutter.material.appbar.primary}
633611 /// Whether this app bar is being displayed at the top of the screen.
634612 ///
@@ -715,7 +693,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
715693 ///
716694 /// If true, preserves the original defaults for the [backgroundColor] ,
717695 /// [iconTheme] , [actionsIconTheme] properties, and the original use of
718- /// the [textTheme] and [ brightness] properties .
696+ /// the [brightness] property .
719697 ///
720698 /// If this property is null, then [AppBarTheme.backwardsCompatibility] of
721699 /// [ThemeData.appBarTheme] is used. If that is also null, the default
@@ -968,16 +946,16 @@ class _AppBarState extends State<AppBar> {
968946 ?? overallIconTheme;
969947
970948 TextStyle ? toolbarTextStyle = backwardsCompatibility
971- ? widget.textTheme ? .bodyMedium
972- ?? appBarTheme.textTheme ? .bodyMedium
949+ ? widget.toolbarTextStyle
950+ ?? appBarTheme.toolbarTextStyle
973951 ?? theme.primaryTextTheme.bodyMedium
974952 : widget.toolbarTextStyle
975953 ?? appBarTheme.toolbarTextStyle
976954 ?? defaults.toolbarTextStyle? .copyWith (color: foregroundColor);
977955
978956 TextStyle ? titleTextStyle = backwardsCompatibility
979- ? widget.textTheme ? .titleLarge
980- ?? appBarTheme.textTheme ? .titleLarge
957+ ? widget.titleTextStyle
958+ ?? appBarTheme.titleTextStyle
981959 ?? theme.primaryTextTheme.titleLarge
982960 : widget.titleTextStyle
983961 ?? appBarTheme.titleTextStyle
@@ -1294,7 +1272,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
12941272 required this .brightness,
12951273 required this .iconTheme,
12961274 required this .actionsIconTheme,
1297- required this .textTheme,
12981275 required this .primary,
12991276 required this .centerTitle,
13001277 required this .excludeHeaderSemantics,
@@ -1335,7 +1312,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
13351312 final Brightness ? brightness;
13361313 final IconThemeData ? iconTheme;
13371314 final IconThemeData ? actionsIconTheme;
1338- final TextTheme ? textTheme;
13391315 final bool primary;
13401316 final bool ? centerTitle;
13411317 final bool excludeHeaderSemantics;
@@ -1412,7 +1388,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
14121388 brightness: brightness,
14131389 iconTheme: iconTheme,
14141390 actionsIconTheme: actionsIconTheme,
1415- textTheme: textTheme,
14161391 primary: primary,
14171392 centerTitle: centerTitle,
14181393 excludeHeaderSemantics: excludeHeaderSemantics,
@@ -1448,7 +1423,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
14481423 || brightness != oldDelegate.brightness
14491424 || iconTheme != oldDelegate.iconTheme
14501425 || actionsIconTheme != oldDelegate.actionsIconTheme
1451- || textTheme != oldDelegate.textTheme
14521426 || primary != oldDelegate.primary
14531427 || centerTitle != oldDelegate.centerTitle
14541428 || titleSpacing != oldDelegate.titleSpacing
@@ -1588,11 +1562,6 @@ class SliverAppBar extends StatefulWidget {
15881562 this .brightness,
15891563 this .iconTheme,
15901564 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,
15961565 this .primary = true ,
15971566 this .centerTitle,
15981567 this .excludeHeaderSemantics = false ,
@@ -1915,15 +1884,6 @@ class SliverAppBar extends StatefulWidget {
19151884 /// This property is used to configure an [AppBar] .
19161885 final IconThemeData ? actionsIconTheme;
19171886
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-
19271887 /// {@macro flutter.material.appbar.primary}
19281888 ///
19291889 /// This property is used to configure an [AppBar] .
@@ -2192,7 +2152,6 @@ class _SliverAppBarState extends State<SliverAppBar> with TickerProviderStateMix
21922152 brightness: widget.brightness,
21932153 iconTheme: widget.iconTheme,
21942154 actionsIconTheme: widget.actionsIconTheme,
2195- textTheme: widget.textTheme,
21962155 primary: widget.primary,
21972156 centerTitle: widget.centerTitle,
21982157 excludeHeaderSemantics: widget.excludeHeaderSemantics,
0 commit comments