Ask Your Question
1

What is the method to eliminate the debug banner in Flutter?

asked 2022-02-24 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-12-20 02:00:00 +0000

scrum gravatar image

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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2022-02-24 11:00:00 +0000

Seen: 15 times

Last updated: Dec 20 '21