Improving docs for new comers
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- dart, flutter
- Domain
- documentation, mobile
Research direction
Start by locating the documentation section containing “Execute a run configuration of choice” and review the Flutter commands using lib/main_staging.dart and lib/main_production.dart. Update the setup guidance to cover template runs without flavors, code generation including conflicting outputs, the Flutter version, and troubleshooting steps such as flutter clean and dependency regeneration.
Written by the indexing model from the issue text.
Description
For new devs that are trying to run the template, the docs are not very straightforward.
For example, in this step:
Execute a run configuration of choice
$ flutter run --flavor staging -t lib/main_staging.dart$ flutter run --flavor production -t lib/main_production.dart
It is suggesting to use a flavor, I'm assuming this is here because it's a template and will be used for an actual app that does have flavors, however the template app does not have any Android or iOS flavors and to run the app you have to use:
$ flutter run -t lib/main_staging.dart$ flutter run -t lib/main_production.dart
Maybe we can add a disclaimer to remove the flavor if you're doing development on the template, or we can add the the flavors (Not sure if this is a good idea for a template).
Another thing is that code generation step is missing, I did figure this out on my own, however some junior devs might not, I suggest we add it.
Execute
$ flutter pub run build_runner buildto generate the required files
Also, code generation caused conflicts with some files for some reason, I had to run $ flutter pub run build_runner build --delete-conflicting-outputs to re-generate those files.
Something worth mentioning:
The Flutter version to be used is not mentioned, I have Flutter v3.7.8 installed and faced an issue when first trying to run the code generation command, the first thing I usually do in such a case is to remove the pubspec.lock file, run a $ flutter clean command, sometimes I also delete some generated iOS and android files, and then run flutter pub get again.
This solved the issue for me, it would be a good idea to add a debugging section for juniors to avoid unnecessary questions.
- Dominant language
- Dart
- Stars
- 37
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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 ml-opensource/flutter-template
-
ml-opensource/flutter-template#123 · 1 assignee ·
-
TBD
ml-opensource/flutter-template#120 · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Setup `retrofit` Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
ml-opensource/flutter-template#83 · 2 comments ·
All issues in ml-opensource/flutter-template
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
code quality good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Suwayomi/Suwayomi-Tsumiru#479 ·
-
Build Failure: agora_rtc_engine compiled against android-31 while dependencies require android-34+ Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
conceptadev/noir#95 ·