There is also another way to remove a debug banner from a flutter application. Now after the new version in the main.dart file there is no "debugShowCheckedModeBanner: false," . Therefore, I think these methods are effective:
- If you are using VS Code, install
"Dart DevTools" from the extensions. After installation, you can easily find the "Dart DevTools" text icon at the bottom of VS Code. When you click on this text icon, a link will open in Google Chrome. From this link page, you can easily remove the banner by simply clicking on the banner icon, as shown in this screenshot .
NOTE: - Dart DevTools is an extension of the Dart language debugger in VS Code
- If
Dart DevTools already installed in your VS code, you can directly open Google Chrome and open this URL = "127.0.0.1:ZZZZZ/?hide=debugger&port=XXXXX"
NOTE. - In this link, replace "XXXXX" with the 5-digit port identifier (on which your flutter application is running), which will change every time you use the "flutter run" command and replace "ZZZZZ" with a global one (immutable). 5-digit debugger identifier
NOTE: - these dart developer tools are for the Google Chrome browser only.
source share