mirror of
https://github.com/flutter/flutter
synced 2024-08-28 12:30:38 +00:00
![]() Resolves #128046.
Adds a services API that allows flutter app developers to write app code that determines `--flavor` the app was built with.
This is implemented by having the tool adding the value of `--flavor` to its list of dart environment declarations, which will be available to the app at run time. Specifically,`FLUTTER_APP_FLAVOR` is set. I chose this implementation for its simplicity. There is some precedent for this, but only for web ([example](
|
||
---|---|---|
.. | ||
a11y_assessments | ||
automated_tests | ||
benchmarks | ||
bots | ||
ci | ||
conductor | ||
customer_testing | ||
devicelab | ||
docs | ||
forbidden_from_release_tests | ||
integration_tests | ||
manual_tests | ||
missing_dependency_tests | ||
snippets/config | ||
tools | ||
tracing_tests | ||
analysis_options.yaml | ||
README.md |
This directory contains tools and resources that the Flutter team uses during the development of the framework. The tools in this directory should not be necessary for developing Flutter applications, though of course, they may be interesting if you are curious.
The tests in this directory are run in the framework_tests_misc-*
shards.