Flutter Name source files using lowercase_with_underscores.dart 如何处理

1,569 阅读1分钟

在项目目录下找到 analysis_options.yaml 找到并且打开

加入这行

rules:
  file_names:false ///加入这行
  # avoid_print: false  # Uncomment to disable the `avoid_print` rule
  # prefer_single_quotes: true  # Uncomment to enable the `prefer_single_quotes` rule

等待几秒后就可以了。

done.