How can I remove the Flutter debug banner?


How can I remove the debug banner in Flutter?

I am using flutter screenshot and I would like the screenshot not to have a banner. Now it does have.

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


On your MaterialApp set debugShowCheckedModeBanner to false.

  debugShowCheckedModeBanner: false,

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

Answered By – Rémi Rousselet

Answer Checked By – Katrina (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *