升级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版本,就不会出现上面这个报错了

相关推荐
程序员老刘16 小时前
为什么我从不推荐GetX?11k星标背后的真相
flutter·客户端
dragon72521 小时前
flutter riverpod原理浅析
flutter
恋猫de小郭1 天前
深入理解 Flutter 的 PlatformView 如何在鸿蒙平台实现混合开发
android·前端·flutter
浅蓝色1 天前
flutter平台判断后续
flutter·harmonyos
猪哥帅过吴彦祖1 天前
Flutter 系列教程:常用基础组件 (下) - `TextField` 和 `Form`
前端·flutter·ios
我想吃辣条1 天前
flutter google play 应用不支持 16 KB
android·flutter
LinXunFeng1 天前
Flutter - Melos Pub workspaces 实践
前端·flutter·架构
勤劳打代码2 天前
妙笔生花 —— Flutter 实现飞入动画
前端·flutter·设计模式
我想吃辣条2 天前
flutter mapbox_maps_flutter 应用不支持 16 KB
flutter