[cupertino_ui] Adopt code excerpts in README (#13400) This PR adopts the repository's code-excerpt mechanism for the documentation examples in the `cupertino_ui` package. ### Changes - Adds `example/lib/readme_excerpts.dart` as the maintained source for the app-wide compatibility bridge, subtree compatibility bridge, and Dartdoc example snippets. - Updates `packages/cupertino_ui/README.md` and `packages/cupertino_ui/example/README.md` to generate their Dart code examples from named source regions. - Removes the obsolete `exempt_from_excerpts: true` configuration from `ci_config.yaml`, enabling README excerpt enforcement for this package. - Corrects the installation command's code fence from `dart` to `sh`. - Adds a pending changelog entry with `version: patch`, following the package's batch-release process. - Adds smoke tests in `example/test/readme_excerpts_test.dart` to verify the app-wide and subtree compatibility bridge examples. These changes keep the published documentation examples synchronized with maintained source code and allow the repository's excerpt validation to detect inconsistencies. ### Related issue Part of [[flutter/flutter#102679](https://github.com/flutter/flutter/issues/102679)] - Adopt code-excerpt across all READMEs. ### Validation Validation performed after synchronizing with the latest PR branch: - `fvm flutter analyze` - passed with no issues. - `fvm flutter test test/readme_excerpts_test.dart` - passed. 2 tests passed. - `fvm flutter test` - passed. 132 tests passed, 2 skipped. - Working tree was clean before pushing the changes. Earlier package validation: - Package tests: 1,959 passed, 6 skipped. - Example tests: 130 passed, 2 skipped, before the additional smoke tests were added. - General package validation with `--no-check-for-missing-changes` passed. - `git diff --check` passed. ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [[Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code)]. Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find the comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: