How can i use routing for auth0. I'm using auth0-flutter for integration

I"m trying to integrate auto0 into my flutter application. I want to know how to use routing because when I try routing like this I’m not getting a callback for a user who is successfully logged in. I’m using auto_route for routing.

My Main. dart is looking like this

Future<void> main() async {
  setupLocator();
  WidgetsFlutterBinding.ensureInitialized();
  await dotenv.load();
  await ApplicationPreference().initData();

  SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
  ]);
  Auth0Web auth0Web =
      Auth0Web(dotenv.env['AUTH0_DOMAIN']!, dotenv.env['AUTH0_CLIENT_ID']!);

  runApp( MyApp( auth0Web: auth0Web));
}

class MyApp extends StatelessWidget {
  final  Auth0Web auth0Web;
  const MyApp({Key? key,  required this.auth0Web}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      debugShowCheckedModeBanner: false,
      routerDelegate: locator<AppRouter>().delegate(
        // Pass initial parameters here
        initialRoutes: [LoginRoute( auth0Web: auth0Web)],
      ),
      routeInformationParser: locator<AppRouter>().defaultRouteParser(),
    );
  }
}```