How to remove the Flutter debug banner?

前端 未结 12 639
死守一世寂寞
死守一世寂寞 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:21

    Well this is simple answer you want.

    MaterialApp(
     debugShowCheckedModeBanner: false
    )
    

    But if you want to go deep with app (Want a release apk (which don't have debug banner) and if you are using android studio then go to

    Run -> Flutter Run 'main.dart' in Relese mode

提交回复
热议问题