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.
MaterialApp( debugShowCheckedModeBanner: false )
The debug banner will also automatically be removed on release build.
- 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.
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”