How to remove the Flutter debug banner?

前端 未结 12 632
死守一世寂寞
死守一世寂寞 2020-12-07 11:13

How to remove the debug banner in Flutter?

I am using a flutter screenshot and I would like the screenshot not to have a banner. Now it does have.

12条回答
  •  情歌与酒
    2020-12-07 11:39

    If you are using IntelliJ IDEA, there is an option in the flutter inspector to disable it.

    run the project

    open the flutter inspector

    hide slow banner

    When you are in the Flutter Inspector, click or choose "More Actions."

    Picture of the Flutter Inspector

    When the menu appears, choose "Hide Debug Mode Banner"

    Picture of Hide Debug Mode Banner

提交回复
热议问题