Flutter之运行错误:Error: Member notfound: ‘SystemChrome .setEnabledSystemuIOverlays‘

项目由于引入的包导致报错:

Error: Member notfound: 'SystemChrome .setEnabledSystemuIOverlays'

主要原因是因为包里的方法有变动。

解决办法:

将AppDate\Local\Pub\Cache\hosted\pub.dev\r_scan-0.1.6+1\lib\src\r_scan_view.dart文件中的

原方法:SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.top);

修改为:SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays:SystemUiOverlay.top);

相关推荐
花燃柳卧2 小时前
跨平台路由组件工程源码补充上传
android·flutter·kotlin
心中有国也有家3 小时前
E-Brufen 技术选型全景:Flutter + 鸿蒙 + Hive CE
hive·hadoop·学习·flutter·华为·harmonyos
Mandy的名字被占用了5 小时前
Dart 与 Flutter 快速入门指南
后端·flutter·dart
心中有国也有家9 小时前
Flutter 鸿蒙编译与构建流程深度解析
学习·flutter·华为·harmonyos
心中有国也有家1 天前
使用 DevEco Studio 配置 Flutter 鸿蒙签名
学习·flutter·华为·harmonyos
nice先生的狂想曲1 天前
Stream与StreamController以及对应的使用场景
flutter·客户端
心中有国也有家1 天前
鸿蒙Flutter开发环境从零搭建教程(Windows/macOS双平台·避坑版)
学习·flutter·华为·harmonyos
心中有国也有家1 天前
Flutter 鸿蒙适配第一步:从 hive 迁移到 hive\_ce
hive·学习·flutter·华为·harmonyos
心中有国也有家1 天前
AtomGit Flutter 鸿蒙客户端:E-Brufen 架构设计
学习·flutter·华为·harmonyos
心中有国也有家1 天前
鸿蒙 Flutter 本地存储实战:Hive CE 从入门到精讲
人工智能·hive·flutter·华为·harmonyos