To eliminate the debug banner in Flutter, add the following line of code to the MaterialApp
widget or the CupertinoApp
widget, depending on which one you are using:
debugShowCheckedModeBanner: false,
For example:
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
home: MyWidget(),
),
);
}
This will remove the "debug" banner from the top right corner of your app's screen.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-02-24 11:00:00 +0000
Seen: 15 times
Last updated: Dec 20 '21
How can a debug banner similar to the one on Flutter be added on Jetpack Compose?
What is causing my Flutter Android apk's image to appear as a single 1x1 pixel?
What is the method for adding an icon to the lower right corner of a container in Flutter?
Is it impossible to transmit a variable from one flutter component to another?
What is the method to adjust the transparency of the snackbar in flutter?
What steps can be taken to eliminate the empty space above and below text in Flutter?