【问题标题】:Flutter getx package - Error: No named parameter with the name 'findProxy'Flutter getx 包 - 错误:没有名为“findProxy”的命名参数
【发布时间】:2022-01-17 08:35:01
【问题描述】:

当我运行该项目时,我收到这样的错误,flutter clean 然后flutter pub get 尝试但没有结果。感谢阅读,请帮助..

==> /C:/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.6.0/lib/get_connect/http/src/http.dart:60:11:错误:没有命名参数名称“findProxy”。 查找代理:查找代理, ^^^^^^^^^ /C:/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.6.0/lib/get_connect/http/src/http/html/http_request_html.dart:13:3: 上下文:找到这个候选人,但论点不匹配。 HttpRequestImpl({ ^^^^^^^^^^^^^^^

【问题讨论】:

    标签: flutter http dart proxy flutter-getx


    【解决方案1】:

    这很可能是因为该包与当前版本的flutter不兼容,反之亦然。

    尝试从以下位置更新软件包版本:

    https://pub.dev/packages/http

    另外,尝试使用以下命令导入包:

    import 'package:http/http.dart' as http;

    然后使用如下函数:

    http.post()

    【讨论】:

    • 比你的回答。我更新了所有安装的包,问题就解决了。
    猜你喜欢
    • 2023-01-16
    • 2021-05-21
    • 2021-12-11
    • 1970-01-01
    • 2023-01-03
    • 2021-06-18
    • 2021-11-26
    • 2022-01-17
    • 1970-01-01
    相关资源
    最近更新 更多