Saturday, April 30, 2022

How to remove debug banner in Flutter App






A debug banner is controlled by the debugShowCheckedModeBanner property of a MaterialApp and CupertinoApp widget. To remove or hide the debug banner in your Flutter app, set the debugShowCheckedModeBanner property to false in the constructor argument of a MaterialApp/CupertinoApp.


  MaterialApp(

  debugShowCheckedModeBanner: false,

  home: Scaffold(

    appBar: AppBar(

      title: const Text('Home'),

    ),

  ),  

); 

No comments:

Post a Comment