interceptorScreen method
Provides the main widget for the interceptor screen.
isDarkTheme
: Whether to use dark theme. Defaults totrue
.isMultiWindow
: Whether the screen is part of a multi-window environment.
Implementation
Widget interceptorScreen({
bool isDarkTheme = true,
bool isMultiWindow = false,
}) {
final ThemeData themeData =
isDarkTheme ? InfospectTheme.darkTheme : InfospectTheme.lightTheme;
mobileRoutes.themeData = themeData;
return MaterialApp(
debugShowCheckedModeBanner: false,
localizationsDelegates: const <LocalizationsDelegate<Object>>[],
supportedLocales: const <Locale>[
Locale('en', 'US'), // English
],
theme: themeData,
home: MultiBlocProvider(
providers: [
BlocProvider(
create: (_) => LaunchBloc(),
),
BlocProvider(
create: (_) => NetworksListBloc(
isMultiWindow: isMultiWindow,
),
),
BlocProvider(
create: (_) => LogsListBloc(
infospectLogger: Infospect.instance.infospectLogger,
isMultiWindow: isMultiWindow,
),
),
],
child: mobileRoutes.launch(Infospect.instance),
),
);
}