Navigator.pushReplacement( context, PageRouteBuilder( pageBuilder: (context, animation1, animation2) => Page1(), transitionDuration: Duration(seconds: 0), ), );