INNER CODE UNIT · Dart

MyApp

jellyflix-app/jellyflix · lib/main.dart:39

class MyApp extends ConsumerWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final appRouter = ref.read(routerProvider).router;
    return InputDetector(
      child: MaterialApp.router(
        scaffoldMessengerKey: rootScaffoldMessengerKey,
        // localization
        localizationsDelegates: AppLocalizations.localizationsDelegates,
        supportedLocales: AppLocalizations.supportedLocales,
        // routing
        routeInformationParser: appRouter.routeInformationParser,
        routerDelegate: appRouter.routerDelegate,
        routeInformationProvider: appRouter.routeInformationProvider,
        debugShowCheckedModeBanner: false,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…