Andrea Bizzotto πŸ‡ΊπŸ‡¦ @codewithandrea.com Β· May 8

Did you know? If your app uses GoRouter with shell routes, tracking screen views *reliably* requires some workarounds. Here's how I do it (using Riverpod): 1. Create a stateful GoRouter listener to track screen views 2. Return it inside MaterialApp.builder Full code below 🧡

4 likes 1 replies

?

Replies

Andrea Bizzotto πŸ‡ΊπŸ‡¦ Β· May 8

Here's a PR showing how I implemented this in my Time Tracker app: github.com/bizz84/start...