如何在Android模拟器上的Flutter中删除调试横幅?
问题内容:
如何在抖动中删除调试横幅?
我正在使用flutter screenshot
,我希望屏幕截图没有横幅。现在确实有。
请注意,我收到not supported for emulator
有关配置文件和发布模式的消息。
问题答案:
在你的MaterialApp
设置debugShowCheckedModeBanner
来false
。
MaterialApp(
debugShowCheckedModeBanner: false
)
在 _ 调试_ 的旗帜也将自动在发布版本中删除。