Changed navigation

This commit is contained in:
Juan Gilsanz Polo
2024-02-29 01:45:26 +01:00
parent 3506832f99
commit a8d459ed11
6 changed files with 44 additions and 38 deletions

View File

@@ -14,7 +14,8 @@ Route circlePageBuilder({
fullscreenDialog: fullScreenDialog ?? false,
transitionsBuilder: (context, animation, secondaryAnimation, child) {
const double beganRadius = 0.0;
final double endRadius = MediaQuery.of(context).size.height * 1.7;
final size = MediaQuery.of(context).size;
final double endRadius = size.height > size.width ? size.height * 1.2 : size.width * 1.2;
final radiusTweenAnimation = animation.drive(
Tween(begin: beganRadius, end: endRadius),