How to remove the Flutter debug banner?

Question

Asked by Tree on February 20, 2018 (source).

How to remove the debug banner in flutter?

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

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

Answer

Question answered by Rémi R (source).

On your MaterialApp set debugShowCheckedModeBanner to false.

MaterialApp(
  debugShowCheckedModeBanner: false,
)

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

ANDROID-EMULATOR FLUTTER
SHARE: