Skip to content

Commit

Permalink
bug: fix spare top padding appearing on bottom-up transition
Browse files Browse the repository at this point in the history
  • Loading branch information
snaoyam authored and sboh1214 committed Aug 19, 2023
1 parent 54b9313 commit 783ad65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/utils/navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ Route<T> buildDownUpPageRoute<T extends Object?>(Widget page) {

return SlideTransition(
position: offsetAnimation,
child: child,
child: SafeArea(
top: animation.value != 1,
right: false,
left: false,
bottom: false,
child: Align(alignment: Alignment.bottomCenter, child: child),
),
);
},
);
Expand Down

0 comments on commit 783ad65

Please sign in to comment.