Skip to content

Commit

Permalink
Fix MorphingAppBar's title text color during swipe
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed May 30, 2023
1 parent f5faf12 commit fb0466d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/app_bar/title.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ class AnimatedTitle extends MultiChildRenderObjectWidget {
final title = state.appBar.title;
if (title == null) return const SizedBox();

var style = state.appBar.titleTextStyle ??
state.appBarTheme.titleTextStyle ??
state.theme.textTheme.titleLarge;
var style = state.titleTextStyle;
if (style?.color != null) {
style = style!.copyWith(color: style.color!.withOpacity(state.opacity));
}
Expand Down

0 comments on commit fb0466d

Please sign in to comment.