Document flavor-specific web resources
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- cli, documentation
Research direction
Start with the existing web guide on docs.flutter.dev and the Flutter CLI documentation for flutter run and flutter build web; the issue does not name specific files. Explain the web/flavors/<flavor>/ structure, how flavor-specific files override shared resources, and how resources fall back to web/. Done when the guide covers both example commands and the override and fallback behavior.
Written by the indexing model from the issue text.
Description
Related code pull request or issue
https://github.com/flutter/flutter/pull/197545
Feature summary
The proposed support for flavor-specific web resources introduces a new directory convention for customizing web resources using the existing --flavor argument.
If accepted, the documentation should cover the web/flavors/<flavor>/ directory structure, resource overrides and fallback behavior, and usage with flutter run and flutter build web.
Type of documentation needed
- New conceptual page or guide
- Update to an existing guide on docs.flutter.dev
- Cookbook recipe or practical code sample
- CLI or tooling documentation
- Platform support or integration guide
- Breaking change migration guide
Code snippet or usage example
Example directory structure:
web/
index.html
manifest.json
icons/
flavors/
staging/
index.html
manifest.json
production/
manifest.json
Running or building with a specific flavor:
flutter run -d chrome --flavor staging
flutter build web --flavor production
Files under web/flavors/<flavor>/ override files at the corresponding paths in web/. Resources without a flavor-specific override fall back to the shared directory.
Additional context or resources
- Related feature request: flutter/flutter#141371.
- Additional design details: flutter/rfc#49.
- Dominant language
- Dart
- Stars
- 3.1k
- Forks
- 3.5k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 88
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flutter/website
-
a.fwe a.tut.tutorial co.PRs-welcome co.volunteer e0-minutes fix.bug fix.examples from.page-issue p2-medium
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
flutter/website#14158 · 1 comment ·
Maintainers usually reply within 1 day
-
act.await-dev-pr d.enhancement e1-hours p2-medium st.blocked target.web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
from.page-issue p2-medium
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Document the `use-explicit-plural-values` gen-l10n optionMay be free again @busradansmn claimed this 27 days ago, and no pull request is open. Openact.await-dev-pr d.enhancement e0-minutes p2-medium t.cli-tools t.i18n t.l10n
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
flutter/website#13993 · 2 comments ·
Maintainers usually reply within 1 day
-
a.tut.codelab-google fix.code-sample fix.link fix.typo from.flutter-sdk p2-medium
Difficulty 1/5 Under an hour Newbie friendliness 65/100
flutter/website#13967 · 3 comments ·
Maintainers usually reply within 1 day
Similar issues
-
lang-java needs-triage package:jni package:jni_flutter package:jnigen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
finamp-app/finamp#1920 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
flutter/flutter#197796 · 1 comment ·
Maintainers usually reply within 1 day