Skip to content

Commit

Permalink
- transition collapse bug on title and largetitle
Browse files Browse the repository at this point in the history
  • Loading branch information
kspo committed Jan 4, 2024
1 parent 8cb02b0 commit 853dd9c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/utils/transitionable_navigation_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ class _NavigationBarComponentsTransition {
begin: from,
end: from.shift(
Offset(
-1 * forwardDirection * bottomNavBarBox.size.width,
-4.65 * forwardDirection * bottomNavBarBox.size.width,
0.0,
),
),
Expand All @@ -926,7 +926,7 @@ class _NavigationBarComponentsTransition {
return PositionedTransition(
rect: animation.drive(positionTween),
child: FadeTransition(
opacity: fadeOutBy(0.7),
opacity: fadeOutBy(0.1),
child: bottomSearchBar.child,
),
);
Expand Down Expand Up @@ -977,6 +977,10 @@ class _NavigationBarComponentsTransition {
return null;
}

if (!bottomLargeExpanded) {
return null;
}

return Positioned.fromRelativeRect(
rect: positionInTransitionBox(bottomComponents.largeTitleActionsKey,
from: bottomNavBarBox),
Expand Down Expand Up @@ -1028,7 +1032,7 @@ class _NavigationBarComponentsTransition {
begin: from,
end: from.shift(
Offset(
-1 * forwardDirection * bottomNavBarBox.size.width,
-4.65 * forwardDirection * bottomNavBarBox.size.width,
0.0,
),
),
Expand Down

0 comments on commit 853dd9c

Please sign in to comment.