我在运行应用程序时遇到了问题。在它使用之前,突然开始显示编译错误。
Flutter版本:3.8.1
Dart版本:3.8.1
编译器消息:
/C:/flutter_windows_v1.12.13+hotfix.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flushbar-
1.9.1/lib/flushbar_route.dart:273:8: Error: The method 'FlushbarRoute.install' has more required
arguments than those of overridden method 'OverlayRoute.install'.
void install(OverlayEntry insertionPoint) {
^
/C:/flutter_windows_v1.12.13+hotfix.5-
stable/flutter/packages/flutter/lib/src/widgets/routes.dart:40:8: Context: This is the overridden
method ('install').
void install() {
^
/C:/flutter_windows_v1.12.13+hotfix.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flushbar-
1.9.1/lib/flushbar_route.dart:281:18: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
super.install(insertionPoint);
强文本
1条答案
按热度按时间n7taea2i1#
这个问题似乎是由
flushbar
插件引起的。您可以降级到以前的工作版本,也可以升级到1.9.1,据报道该版本修复了该问题。