title: How to remove persistent bottom navigation bar from some specific routes?
body: <p>I wanted to have persistent bottom navigation bar across my whole app so after searching for couple of hours I found a solution. 
  I was inspired from this blog post and wrote my solution code <a href="https://medium.com/@swav.kulinski/flutter-navigating-off-the-charts-e118562a36a5" rel="noreferrer">Flutter — navigating off the charts</a></p>
  
  <pre><code>import 'package:flutter/material.dart';
  import './login/login.dart';
  import './alerts/alerts.dart';
  import './home/home.dart';
  import './Theme.dart';
  import './settings/settings.dart';
  import './enroll/enroll.dart';
  import './add_device/add_device.dart';
  import './eachDevice/index.dart';
  import './device_settings/device_settings.dart';
  import 'splash_screen/splash_screen.dart';
  import './geofences/geofence_list.dart';
  import './geofences/draw_geofence.dart';
  import 'package:firebase_messaging/firebase_messaging.dart';
  import './home/second_navigation_bar.dart';
  import 'dart:io';
  import 'package:path/path.dart';
  void main() {
    GlobalKey&lt;NavigatorState&gt; navigator = new GlobalKey&lt;NavigatorState&gt;();
    HttpOverrides.global = new AppHttpOverrides();
    Map&lt;String, WidgetBuilder&gt; _routes = &lt;String, WidgetBuilder&gt;{
      "/alerts": (BuildContext context) =&gt; new Alerts(),
      "/login": (BuildContext context) =&gt; new LoginPage(),
      "/settings": (BuildContext context) =&gt; new Settings(),
      "/enroll": (BuildContext context) =&gt; new Enroll(),
      "/add_device": (BuildContext context) =&gt; new AddDevice(),
      "/history": (BuildContext context) =&gt; new History(),
      "/home": (BuildContext context) =&gt; new Home(),
      "/device_settings": (BuildContext context) =&gt; new DeviceSettings(),
      "/geofence_list": (BuildContext context) =&gt; new GeofenceList(),
      "/draw_geofence": (BuildContext context) =&gt; new DrawGeofence(),
    };
  
    runApp(new MaterialApp(
      navigatorKey: navigator,
      home: new SplashScreen(),
      builder: (context, child) {
        return new Scaffold(
            body: child,
            bottomNavigationBar:myBottomNavigationBar(),
            resizeToAvoidBottomPadding: false
        );
      },
      theme: buildTheme(),
      routes: _routes,
    ));
  }
  </code></pre>
  
  <p>This code works perfectly and I have static bottom navigation bar in all app pages however I want to exclude bottom navigation bar in some routes like login page how can I exclude bottom navigation bar for some specific pages with this approach.</p>