> For the complete documentation index, see [llms.txt](https://ryukiedev.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryukiedev.gitbook.io/wiki/flutter/09.-dai-ma-gui-fan.md).

# 09.代码规范

## Name non-constant identifiers using lowerCamelCase.

![1](https://4193904735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MI8JgbGh3U6X_oedqkm%2Fuploads%2Fgit-blob-3b1e50844284d80f77e6f773ff45ebc9e5f617d2%2F09-01.png?alt=media)

如上图，警告。这里不是 const 不能使用大写开头的驼峰。

**DO** name non-constant identifiers using lowerCamelCase.

Class members, top-level definitions, variables, parameters, named parameters and named constructors should capitalize the first letter of each word except the first word, and use no separators.

**GOOD:**

```
var item;

HttpRequest httpRequest;

align(clearItems) {
  // ...
}
```

> <https://dart-lang.github.io/linter/lints/non\\_constant\\_identifier\\_names.html>
