Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TalkerRouteObserver does not work with Navigator widget #258

Open
NapasPayu opened this issue Sep 4, 2024 · 0 comments
Open

TalkerRouteObserver does not work with Navigator widget #258

NapasPayu opened this issue Sep 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NapasPayu
Copy link

NapasPayu commented Sep 4, 2024

Describe the bug
I use TalkerRouteObserver with Navigator widget, but I can't see any logs when navigating.
However, TalkerRiverpodObserver works fine.

dependencies:
talker: ^4.4.1
talker_dio_logger: ^4.4.1
talker_riverpod_logger: ^4.4.1

@override
Widget build(BuildContext context, WidgetRef ref) {
  final talker = Talker();

  return ProviderScope(
    observers: [
      TalkerRiverpodObserver(talker: talker),
    ],
    child: Navigator(
      key: nestedNavigatorKey,
      initialRoute: '/',
      onGenerateRoute: ...,
      observers: [
        TalkerRouteObserver(talker),
      ],
    ),
  );
}
@Frezyx Frezyx added the bug Something isn't working label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants