Skip to content

Commit

Permalink
Remove deprecated [sliver]appBar.textTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 24, 2023
1 parent da1d1d2 commit c0cb638
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions lib/src/app_bar/app_bar.dart
Expand Up @@ -27,7 +27,6 @@ class MorphingAppBar extends StatelessWidget implements PreferredSizeWidget {
this.foregroundColor,
this.iconTheme,
this.actionsIconTheme,
this.textTheme,
this.primary = true,
this.centerTitle,
this.excludeHeaderSemantics = false,
Expand Down Expand Up @@ -86,9 +85,6 @@ class MorphingAppBar extends StatelessWidget implements PreferredSizeWidget {
/// See [AppBar.actionsIconTheme]
final IconThemeData? actionsIconTheme;

/// See [AppBar.textTheme]
final TextTheme? textTheme;

/// See [AppBar.primary]
final bool primary;

Expand Down Expand Up @@ -156,7 +152,6 @@ class MorphingAppBar extends StatelessWidget implements PreferredSizeWidget {
foregroundColor: foregroundColor,
iconTheme: iconTheme,
actionsIconTheme: actionsIconTheme,
textTheme: textTheme,
primary: primary,
centerTitle: centerTitle,
excludeHeaderSemantics: excludeHeaderSemantics,
Expand All @@ -165,7 +160,6 @@ class MorphingAppBar extends StatelessWidget implements PreferredSizeWidget {
bottomOpacity: bottomOpacity,
toolbarHeight: toolbarHeight,
leadingWidth: leadingWidth,
backwardsCompatibility: false,
toolbarTextStyle: toolbarTextStyle,
titleTextStyle: titleTextStyle,
systemOverlayStyle: actualSystemOverlayStyle,
Expand Down Expand Up @@ -232,11 +226,8 @@ class _AnimatedAppBar extends AnimatedWidget {
shape: state.shape,
backgroundColor: state.backgroundColor,
foregroundColor: state.foregroundColor,
// `brightness` is obsolete.
iconTheme: state.iconTheme,
actionsIconTheme: state.actionsIconTheme,
// We don't need to set `textTheme` as that's only used as fallback for
// `toolbarTextStyle` and `titleTextStyle`.
// The value is the same for parent and child, so it doesn't matter which
// one we use.
primary: parent.appBar.primary,
Expand All @@ -247,7 +238,6 @@ class _AnimatedAppBar extends AnimatedWidget {
bottomOpacity: state.bottomOpacity,
toolbarHeight: state.toolbarHeight,
leadingWidth: state.leadingWidth,
backwardsCompatibility: false,
toolbarTextStyle: state.toolbarTextStyle,
titleTextStyle: state.titleTextStyle,
systemOverlayStyle: state.systemOverlayStyle,
Expand Down
9 changes: 0 additions & 9 deletions lib/src/app_bar/sliver_app_bar.dart
Expand Up @@ -78,7 +78,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
required this.foregroundColor,
required this.iconTheme,
required this.actionsIconTheme,
required this.textTheme,
required this.primary,
required this.centerTitle,
required this.excludeHeaderSemantics,
Expand Down Expand Up @@ -122,7 +121,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
final Color? foregroundColor;
final IconThemeData? iconTheme;
final IconThemeData? actionsIconTheme;
final TextTheme? textTheme;
final bool primary;
final bool? centerTitle;
final bool excludeHeaderSemantics;
Expand Down Expand Up @@ -210,7 +208,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
foregroundColor: foregroundColor,
iconTheme: iconTheme,
actionsIconTheme: actionsIconTheme,
textTheme: textTheme,
primary: primary,
centerTitle: centerTitle,
excludeHeaderSemantics: excludeHeaderSemantics,
Expand Down Expand Up @@ -246,7 +243,6 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
foregroundColor != oldDelegate.foregroundColor ||
iconTheme != oldDelegate.iconTheme ||
actionsIconTheme != oldDelegate.actionsIconTheme ||
textTheme != oldDelegate.textTheme ||
primary != oldDelegate.primary ||
centerTitle != oldDelegate.centerTitle ||
titleSpacing != oldDelegate.titleSpacing ||
Expand Down Expand Up @@ -294,7 +290,6 @@ class MorphingSliverAppBar extends StatefulWidget {
this.foregroundColor,
this.iconTheme,
this.actionsIconTheme,
this.textTheme,
this.primary = true,
this.centerTitle,
this.excludeHeaderSemantics = false,
Expand Down Expand Up @@ -365,9 +360,6 @@ class MorphingSliverAppBar extends StatefulWidget {
/// See [SliverAppBar.actionsIconTheme].
final IconThemeData? actionsIconTheme;

/// See [SliverAppBar.textTheme].
final TextTheme? textTheme;

/// See [SliverAppBar.primary].
final bool primary;

Expand Down Expand Up @@ -513,7 +505,6 @@ class _SliverAppBarState extends State<MorphingSliverAppBar>
foregroundColor: widget.foregroundColor,
iconTheme: widget.iconTheme,
actionsIconTheme: widget.actionsIconTheme,
textTheme: widget.textTheme,
primary: widget.primary,
centerTitle: widget.centerTitle,
excludeHeaderSemantics: widget.excludeHeaderSemantics,
Expand Down

0 comments on commit c0cb638

Please sign in to comment.