I have a Router that works likes this:
In the first step there is a MaterialPage being created:
return MaterialPage(
child: SomePage(),
key: keyName,
name: pageName,
arguments: routeSettings.arguments,
);
and added to the array of Pages then notifyListeners() is called. This router class has a build method like this:
return Navigator(
key: navigatorKey,
pages: List.of(_pages),
onPopPage: _onPopPage,
);
Now my question is where can change page transition for some pages in such a setting? I was trying to use page_transition package but it returns a PageTransition object not a Widget which is required in MaterialPage.