How to remove the debug banner in Flutter

October 09, 2022 No comments flutter debugging android-emulator

Introduction

In Flutter, there are situations when we wish to remove the debug banner. In this article, we'll look at how to do it.

How to remove the debug banner in Flutter

To remove the debug banner in Flutter you need to set debugShowCheckedModeBanner to false in your MaterialApp Widget.

MaterialApp(
  debugShowCheckedModeBanner: false,
)

Conclusion

In this post, we presented the best way to remove the debug banner in Flutter.

{{ message }}

{{ 'Comments are closed.' | trans }}