title: Flutter debugShowCheckedModeBanner: false not remove debug banner
body: <p>I'm trying to remove the debug banner from my application and I added <code>debugShowCheckedModeBanner: false</code> in my main.dart and every activity but still showing the debug banner.</p>
  <p>Main.dart</p>
  <pre><code>void main() async {
  
    runApp(MaterialApp(home:SplashScreen(), debugShowCheckedModeBanner: false,));
  
  }
  
  class SplashScreen extends StatefulWidget {
    @override
    _SplashScreenState createState() =&gt; new _SplashScreenState();
  }
  
  class _SplashScreenState extends State&lt;SplashScreen&gt; {
   
  
    startTime() async {
      var _duration = new Duration(seconds: 1);
      return new Timer(_duration, navigationPage);
    }
  
    void navigationPage() {
      Navigator.pushReplacement(
          context,
          new CupertinoPageRoute(
              builder: (BuildContext context) =&gt; MyHomesApp()));
  
    }
  
  
  
    @override
    Widget build(BuildContext context) {
      return new Scaffold(
        body: new Stack(
          children: &lt;Widget&gt;[
            Container(
              decoration: new BoxDecoration(color: colorGreen),
            ),
            Container(
              padding: EdgeInsets.all(30.0),
              child: Center(
                child: new Image.asset('assets/green_h_logo.png',color: Colors.white,height: 150,width: 150,)
              ),
            ),
            Align(
              alignment: Alignment.bottomCenter,
              child: Container(
                  height: 50,
                  child:new Image.asset('assets/h.gif')),
            ),
          ],
        ),
      );
    }
  } 
  </code></pre>
  <p>The above code is my main.dart, it loads a splash screen and after a second it navigates to myhomesapp which has bottomnavigationbar as below:</p>
  <p>home.dart</p>
  <pre><code>class MyHomesApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
  
      return MaterialApp(
  
        debugShowCheckedModeBanner: false,
  
        title: 'App Name',
        theme: ThemeData(
          primarySwatch: Colors.green,
          fontFamily: &quot;Montserrat&quot;, //my custom font
        ),
        builder: (context, child) {
  
          return ScrollConfiguration(
            behavior: MyBehavior(),
            child: child,
          );
        },
  
        home: Homes(),
  
      );
    }
  }
  
  
  class Homes extends StatefulWidget {
    @override
    _HomeState createState() =&gt; _HomeState();
  }
  
  class _HomeState extends State&lt;Homes&gt; {
    int _currentIndex;
    List&lt;Widget&gt; _children;
  
  
  
    @override
    void initState() {
      _currentIndex = 0;
      _children = [
        MyDealApp(),
        MyRedemptionApp(),
        MyProfileApp()
      ];
  
      _loadCounter();
  
  
      super.initState();
    }
  
    _loadCounter() async {
      SharedPreferences prefs = await SharedPreferences.getInstance();
      setState(() {
        myInt = prefs.getInt('id') ?? 0;
        _email = (prefs.getString('email') ?? '');
        _fullname = (prefs.getString('fullname') ?? '');
        currentTabs = prefs.getInt('currentTab') ?? 0;
        debugPrint(&quot;currentTabMain:$currentTabMain&quot;);
        debugPrint(&quot;emailr:$_email&quot;);
  
      });
    }
  
  
    @override
    Widget build(BuildContext context) {
  
      const assetHome = 'assets/home_off.svg';
      const assetRedemptions = 'assets/redeemed_off.svg';
      const assetCommunity = 'assets/community_off.svg';
      const assetProfile = 'assets/profile_off.svg';
  
  
      const assetHome1 = 'assets/home_on.svg';
      const assetRedemptions1 = 'assets/redeemed_on.svg';
      const assetCommunity1 = 'assets/community_on.svg';
      const assetProfile1 = 'assets/profile_on.svg';
  
  
      return Container(
  
        height: 30,
  
          child:CupertinoTabScaffold(
  
          tabBar: CupertinoTabBar(
            backgroundColor: colorGreen,
  
            currentIndex: _currentIndex,
            onTap: onTabTapped,
            items: [
              BottomNavigationBarItem(
                icon: _currentIndex == 0 ?SvgPicture.asset(assetHome1,
                    color: Colors.white,
                    width: 20,
                    height: 20,
                    semanticsLabel: 'Home'):SvgPicture.asset(assetHome,
                    color: Colors.white,
                    width: 20,
                    height: 20,
                    semanticsLabel: 'Home'),
              ),
              BottomNavigationBarItem(
                icon:  _currentIndex == 1 ?SvgPicture.asset(assetRedemptions1,
                    color: Colors.white,
                    width: 20,
                    height: 20,
                    semanticsLabel: 'Redemptions'):SvgPicture.asset(assetRedemptions,
                    color: Colors.white,
                    width: 20,
                    height: 20,
                    semanticsLabel: 'Redemptions'),
  
              ),
              BottomNavigationBarItem( icon:  _currentIndex == 2 ? SvgPicture.asset(assetProfile1,
                  color: Colors.white,
                  width: 20,
                  height: 20,
                  semanticsLabel: 'Profile'):SvgPicture.asset(assetProfile,
                  color: Colors.white,
                  width: 20,
                  height: 20,
                  semanticsLabel: 'Profile'),
  
               ),
            ],
  
          ),
          tabBuilder: (BuildContext context, int index) {
            return CupertinoTabView(
              builder: (BuildContext context) {
                return SafeArea(
                  top: false,
                  bottom: false,
                  child: CupertinoApp(
                    home: CupertinoPageScaffold(
                      resizeToAvoidBottomInset: false,
                      child: _children[_currentIndex],
                    ),
                  ),
                );
              },
            );
          }
      ));
    }
  
    void onTabTapped(int index) {
      setState(() {
        _currentIndex = index;
        debugPrint(&quot;tabbottom:$_currentIndex&quot;);
  
      });
    }
  }
  
  </code></pre>
  <p>I used the same for  <code>MyRedemptionApp()</code> and <code>MyProfileApp()</code> respectively. The major issue is <code>debugShowCheckedModeBanner: false</code> is not removing the debug banner because the debug banner shows on every page. How to remove the debug banner?</p>