when i pull your repository and try to test i get this error on clicking on main page with optional options;
MaterialButton(
onPressed: () {
Airoute.pushNamedWithAnimation(
routeName: "/SecondPage",
argument: "遇见你,我很开心😄😄😄",
routePageAnimation: AirouteTransition.Slide);
},
color: Theme.of(context).primaryColor,
textColor: Colors.white,
child: Text("跳转下一页"),
),
════════ Exception caught by gesture ══════
The following assertion was thrown while handling a gesture:
'package:flutter/src/widgets/routes.dart': Failed assertion: line 130 pos 12: 'duration != null && duration >= Duration.zero': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2 TransitionRoute.createAnimationController (package:flutter/src/widgets/routes.dart:130:12)
#3 PageRoute.createAnimationController (package:flutter/src/widgets/pages.dart:40:50)
#4 TransitionRoute.install (package:flutter/src/widgets/routes.dart:177:19)
#5 ModalRoute.install (package:flutter/src/widgets/routes.dart:959:11)
#6 NavigatorState.push (package:flutter/src/widgets/navigator.dart:1791:11)
...
Handler: "onTap"
Recognizer: TapGestureRecognizer#2bcf9
debugOwner: GestureDetector
state: possible
won arena
finalPosition: Offset(195.3, 421.0)
finalLocalPosition: Offset(61.3, 22.0)
button: 1
sent tap down
═══════════════════════════════════════════════