jancywen / e_shop_flutter

0 stars 0 forks source link

pull_to_refresh error #7

Open jancywen opened 3 years ago

jancywen commented 3 years ago
    /Users/captain/Documents/GitHub/e_shop_flutter/ios/Pods/Result/Result/NoError.swift:8:3: warning: will never be executed
                    return true
                    ^
    /Users/captain/Documents/GitHub/e_shop_flutter/ios/Pods/Result/Result/NoError.swift:7:60: note: 'lhs' is uninhabited, so this function body can never be executed
            public static func ==(lhs: NoError, rhs: NoError) -> Bool {
                                                                      ^
    ../../../code_tool/flutter/.pub-cache/hosted/pub.flutter-io.cn/pull_to_refresh-1.6.4/lib/src/smart_refresher.dart:434:9: Error: No named parameter with the name 'keyboardDismissBehavior'.
            keyboardDismissBehavior:
            ^^^^^^^^^^^^^^^^^^^^^^^
    ../../../code_tool/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:588:9: Context: Found this candidate, but the arguments don't match.
      const CustomScrollView({
            ^^^^^^^^^^^^^^^^
    Command PhaseScriptExecution failed with a nonzero exit code
jancywen commented 3 years ago

出现这样的原因就是pull_to_refresh组件与当前flutter的SDK不兼容 给 pull_to_refresh 降级

flutter: 1.22.2
pull_to_refresh: 1.6.1