How to remove the debug banner in flutter app?

How to remove debug banner in flutter?

Also I get message not supported for emulator in release mode.

You need to set debugShowCheckedModeBanner to false in your material app widget.

2 Likes

@ashish173 is right, you need to set debugShowCheckedModeBanner to false on your MaterialApp as follows:

return new MaterialApp( 
    home: new LoginPage(),
    debugShowCheckedModeBanner: false, 
    theme: new ThemeData( primarySwatch: Colors.green, ));

The slow banner will also automatically be removed on release build.

1 Like