1 mac发送网络请求失败

在项目根目录/macos/Runner/DebugProfile.entitlements和Release.entitlements

  1. <dict>
  2. // 加入下面这两行
  3. <key>com.apple.security.network.client</key>
  4. <true/>
  5. </dict>

2 去掉不必要的波浪线

image.png
在analysis_options.yaml下编辑rules:

linter: rules: prefer_const_constructors: false

  1. rules:
  2. must_be_immutable: false
  3. prefer_const_constructors: false
  4. constant_identifier_names: false
  5. unnecessary_this: false
  6. avoid_print: false
  7. prefer_const_constructors_in_immutables: false
  8. prefer_const_literals_to_create_immutables: false
  9. lowercase_with_underscores: false
  10. annotate_overrides: false
  11. overridden_fields: false
  12. prefer_final_fields: false
  13. non_constant_identifier_names: false