从 2.5 升级到 flutter 2.8 后出现此错误,运行 flutter clean 但无法解决
\n../../flutter/.pub-cache/hosted/pub.dartlang.org/visibility_ detector-0.2.0/lib /src/visibility_detector_layer.dart:276:21: 错误:位置参数太多:允许 1 个,但找到 2 个。\n尝试删除多余的位置参数。\nsuper.addToScene(builder, layerOffset);\nflutter doctor
Doctor summary (to see all details, run flutter doctor -v):\n[\xe2\x9c\x93] Flutter (Channel stable, 2.8.1, on macOS 11.5.2 20G95 darwin-arm, locale en-KE)\n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 31.0.0)\n[!] Xcode - develop for iOS and macOS (Xcode 13.2)\n\xe2\x9c\x97 CocoaPods installed but not working.\n You appear to have CocoaPods installed but it is not working.\n This can happen …Run Code Online (Sandbox Code Playgroud)