Skip to content

Commit

Permalink
fix pdf viewer not responsive to state
Browse files Browse the repository at this point in the history
  • Loading branch information
12henbx committed Oct 22, 2023
1 parent 82b5225 commit 6a9c436
Showing 1 changed file with 16 additions and 23 deletions.
39 changes: 16 additions & 23 deletions app/lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,23 @@ class App extends StatelessWidget {
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
return MaterialApp.router(
theme: ThemeData(
textTheme: GoogleFonts.interTextTheme(),
return MultiBlocProvider(
providers: [
BlocProvider<UserInitializationBloc>(
create: (_) => get<UserInitializationBloc>()
..add(
OnboardingAuthEvent(),
),
),
BlocProvider(create: (context) => QuizRegistrationCubit()),
],
child: MaterialApp.router(
theme: ThemeData(
textTheme: GoogleFonts.interTextTheme(),
),
routerConfig: router,
debugShowCheckedModeBanner: false,
),
routerConfig: router,
debugShowCheckedModeBanner: false,
);
// MultiBlocProvider(
// providers: [
// BlocProvider<UserInitializationBloc>(
// create: (_) => get<UserInitializationBloc>()
// ..add(
// OnboardingAuthEvent(),
// ),
// ),
// BlocProvider(create: (context) => QuizRegistrationCubit()),
// ],
// child: MaterialApp.router(
// theme: ThemeData(
// textTheme: GoogleFonts.interTextTheme(),
// ),
// routerConfig: router,
// debugShowCheckedModeBanner: false,
// ),
// );
}
}

0 comments on commit 6a9c436

Please sign in to comment.