flutterflutter-layoutandroid-emulator

How can I remove the debug banner in Flutter?


I'm using flutter screenshot and I expected the screenshot to not have a banner, but it has.

Note that I get a not supported for emulator message for profile and release mode.


Solution

  • On your MaterialApp set debugShowCheckedModeBanner to false.

    MaterialApp(
      debugShowCheckedModeBanner: false,
    )
    

    The debug banner will also automatically be removed on the release build.