升级Flutter 3.13.x 之后出现watcher-1.0.2报错

Failed to build intl_utils:generate:

../../../.pub-cache/hosted/pub.flutter-io.cn/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.

abstract class _ConstructableFileSystemEvent implements FileSystemEvent {

请尝试 dart pub upgrade 命令,如果还是报错 dart pub cache repair ,这样我们就可以使用到最新的watcher-1.1.0版本,就不会出现上面这个报错了

相关推荐
左有道3 小时前
用 Flutter 做一个更顺手的日历组件:calendarview_flutter
flutter
一枚菜鸟_5 小时前
Flutter + Cursor 一天出 App?这 3 个坑让开发者多花了 3 小时
flutter·cursor
心中有国也有家10 小时前
AtomGit Flutter 鸿蒙客户端:零外部资源的应用打包策略
android·javascript·flutter·华为·harmonyos
心中有国也有家10 小时前
AtomGit Flutter 鸿蒙客户端:为 E-Brufen 注入情感节律的文案设计哲学
javascript·学习·flutter·华为·harmonyos
恋猫de小郭10 小时前
Fluter 共享内存多线程正在落地,IsolateGroupBound 来了
android·前端·flutter
太子釢1 天前
Flutter 与 Native 混合开发策略调研与方案对比
flutter
西西学代码1 天前
Flutter---Stack
flutter
ZZZMMM.zip1 天前
基于鸿蒙PC与鸿蒙Flutter框架构建AI本地生活服务平台
人工智能·flutter·华为·harmonyos·鸿蒙
木叶丸1 天前
AI 编程概念与 Harness 工程实践入门
人工智能·flutter·ios
程序员老刘2 天前
腾讯混元Hy3在Flutter项目中的实战体验
flutter·ai编程