I am using Hero and a PageRouteBuilder to navigate with animations between two screens. The problem is that my pop animation is way shorter than my push and that looks a bit clunky. Here is a ScreenVideo for a better understanding.
That is how I build my push:
static PageRouteBuilder _buildTransitionToMonthPage(Month month) {
return PageRouteBuilder(
transitionDuration: Duration(milliseconds: 1000),
pageBuilder: (BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation) {
return MonthPage(
month: month,
);
},
transitionsBuilder: (BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation, Widget child) {
return FadeTransition(opacity: animation, child: child);
},
);
}
}
And on the other Screen I simply call Navigator.pop(context). What am I missing here? Shoudn't it simply reverse the animation duration?