This style guide outlines the coding conventions for contributions to the flutter/flutter repository. It is based on the more comprehensive official style guide for the Flutter repository.
master branch. Other changes have already been reviewed (and are being cherrypicked).dart format. This is enforced by CI.yapf, linted with pylint, and should follow the Google Python Style Guide.clang-format, linted with clang-tidy, and should follow the Google C++ Style Guide.clang-format.ktformat, linted with ktlint, and should follow the Android Kotlin Style Guide.google-java-format and should follow the Google Java Style Guide.clang-format, linted with clang-tidy, and should follow the Google Objective-C Style Guide.swift-format and should follow the Google Swift Style Guide.gn format and should follow the GN Style Guide.{@tool dartpad} for runnable examples.{@tool dartpad} and {@end-tool}, and use the format of the following example to insert the code sample:/// ** See code in examples/api/lib/widgets/sliver/sliver_list.0.dart **/// See also: sections of the documentation, which provide helpful breadcrumbs to developers./// for public-quality documentation, even on private members.When providing a summary, the review agent must adhere to the following principles:
For more detailed guidance, refer to the following documents: