Question:
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.
ADVERTISEMENT
Note that I get not supported for emulator
message for profile and release mode.
Answer 1;
On your MaterialApp
set debugShowCheckedModeBanner
to false
.
MaterialApp( debugShowCheckedModeBanner: false )
The debug banner will also automatically be removed on release build.
Answer 2;
- If you are using Android Studio, you can find the option in the Flutter Inspector tab –> More Actions.
- Or if you’re using Dart DevTools, you can find the same button in the top right corner as well.
Answer 3;
If you are using IntelliJ IDEA, there is an option in the flutter inspector to disable it.
When you are in the Flutter Inspector, click or choose “More Actions.”
When the menu appears, choose “Hide Debug Mode Banner”