I use a router for my app. and use Navigator.pushNamed for use it. but I don't want an animation for it.
MaterialApp(
debugShowCheckedModeBanner: false,
routes: routes,
initialRoute: '/firstPage')
here is my routes :
Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{
'/firstPage': (context) => const FirstPage(),
'/': (context) => const BottomNavBar( activeTabIndex: 0, widgetActive: ExploreHome(), ),
// another routes
};
and I use this for call routes :
Navigator.pushNamed(
context,
'/',
arguments: {
"title": "explore",
"text": "something"
},);
and use final args = (ModalRoute.of(context)!.settings.arguments ??{"title": " ", "text": ""}) as dynamic; to get argument for my ExploreHome() class.
so how can I remove the animation router?