rightToLeftJoined transition animation error
a0v0 opened this issue · comments
My routes
appRouter() => nyRoutes((router) {
// Home page
router.route(
RouterPages.homePage, (context) => MyHomePage(title: "Hello World"));
// Auth routes
router.route(RouterPages.startPage, (context) => StartPage(),
transition: PageTransitionType.fade);
router.route(
RouterPages.loginByEmailPage,
(context) => LoginByEmailPage(),
transition: PageTransitionType.rightToLeftJoined,
);
});
// ignore: avoid_classes_with_only_static_members
/// Class holding all the routes
class RouterPages {
/// Home page
static String homePage = "/";
/// Start page shown before login screen
static String startPage = "/auth/start";
/// Login by email page
static String loginByEmailPage = "/auth/login_by_email";
}
Hi @a0v0,
Hope all is well.
You need to pass in a childCurrent
.
Check out the below example to see how you can achieve this.
router.route("/my-route", (context) => MyPage(),
transition: PageTransitionType.rightToLeftJoined,
pageTransitionSettings: PageTransitionSettings(
childCurrent: MyCurrentChildWidget()
));