When you create a new Flutter project for the first time you might have seen the Debug Banner on Right Top Corner of the application. Now a question arises that How to Remove Debug Banner in Flutter?
How to Remove Debug Banner in Flutter?
- Add debugShowCheckModeBanner: false in MaterialApp() Widget and that should remove the banner on hot reload.
MaterialApp( debugShowCheckedModeBanner: false )
The Debug Banner will also automatically be removed on a release build.
- If you are using Android Studio, you can find the option in the Flutter Inspector tab –> More Actions
- There is also another way for removing the “debug” banner from the flutter app. Now after the new release there is no “debugShowCheckedModeBanner: false,” code line in main. dart file. So I think these methods are effective:–> If you are using VS Code, then install “Dart DevTools” from extensions. After installation, you can easily find the “Dart DevTools” text icon at the bottom of the VS Code. When you click on that text icon, a link will be open in google chrome. From that link page, you can easily remove the banner by just tapping on the banner icon as shown.
In this article, we have learned about Remove Debug Banner in Flutter?
Thanks for Reading!!!
Do let us know if you need any assistance with Flutter?
FlutterAgency.com is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget Guide, Flutter Projects, Code libs and etc.