title: How do I track Flutter screens in Firebase analytics?
body: <p>I have a Flutter app and I'm testing Google Analytics for Firebase on Flutter.</p>
  
  <p>I wanted to see the routes our users (well, me for now) are visiting. I followed the setup steps in <a href="https://pub.dartlang.org/packages/firebase_analytics" rel="noreferrer"><code>firebase_analytics</code></a> and I checked their example app, too. I enabled debugging for Analytics as described in the <a href="https://firebase.google.com/docs/analytics/debugview" rel="noreferrer">Debug View docs</a></p>
  
  <p>Unfortunately, the only two kinds of screen views (<code>firebase_screen_class</code>) I receive in my Analytics Debug view are <code>Flutter</code> and <code>MainActivity</code>.</p>
  
  <p>I'd expect to see <code>/example-1</code>, <code>/example-2</code> and <code>/welcome</code> somewhere, but I don't.</p>
  
  <p>This is the app I'm running in Flutter</p>
  
  <pre><code>class App extends StatelessWidget {
    final FirebaseAnalytics analytics = FirebaseAnalytics();
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        routes: &lt;String, WidgetBuilder&gt;{
          '/example-1': (_) =&gt; Example1(),
          '/example-2': (_) =&gt; Example2(),
          '/welcome': (_) =&gt; Welcome(),
        },
        home: Welcome(),
        navigatorObservers: [FirebaseAnalyticsObserver(analytics: analytics)],
      );
    }
  }
  </code></pre>