Open
Description
After package update, logging does not work.
go_router: 4.1.1
logging: 1.0.2
class MyApp extends ConsumerWidget {
MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context, WidgetRef ref) {
log.info('MyApp- Start[0]');
final GoRouter router = ref.watch(routerProvider);
log.info('MyApp- Start[1]'); //<<<<---------------------------not work
return MaterialApp.router(
debugShowCheckedModeBanner: false,
scrollBehavior: AppScrollBehavior(),
localizationsDelegates: [
S.delegate,
GlobalMaterialLocalizations.delegate, //Internationalization
GlobalWidgetsLocalizations.delegate, //Internationalization
GlobalCupertinoLocalizations.delegate, //Internationalization
],
supportedLocales: S.delegate.supportedLocales,
theme: AppTheme.light.copyWith(
textTheme: GoogleFonts.notoSansNKoTextTheme(Theme.of(context).textTheme),
),
themeMode: ThemeMode.system,
routeInformationProvider: router.routeInformationProvider,
routeInformationParser: router.routeInformationParser,
routerDelegate: router.routerDelegate,
);
}
}