如何删除flutter应用程序中的慢速模式标记

前端之家收集整理的这篇文章主要介绍了如何删除flutter应用程序中的慢速模式标记前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经开始扑动app开发了.我的问题是,如何在flutter应用程序中删除负载横幅.我使用了Material小部件(而不是MaterialApp),它不包含debugShowCheckedModeBanner属性.有没有办法在我的设备屏幕上摆脱那个横幅?
A screenshot containing the slow load banner

解决方法

在命令行中:

flutter run --release

如果要调试并仅隐藏功能区,请设置Material Widget的debugShowCheckedModeBanner属性

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,title: 'Flutter Demo',home: new MyHomePage(title: 'Flutter Demo Home Page'),);
  }
}

猜你在找的Flutter相关文章