Add providers for Firestore and Auth instead of calling `.instance` directly
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 66/100
Research direction
Start in app/lib/core/cloud/ and search call sites with grep -rn 'FirebaseFirestore.instance' app/lib; also locate direct FirebaseAuth.instance calls. Add the three named providers and migrate a first batch of call sites without changing behavior. Run scripts/check.sh from the repository root; done means it passes.
Written by the indexing model from the issue text.
Description
What's wrong / what's wanted
app/lib calls FirebaseFirestore.instance 28 times and FirebaseAuth.instance in many places, and several repositories are hidden singletons. That makes screens and logic that touch them hard to test. The first step is small and behaviour-neutral.
Where
app/lib/core/cloud/- call sites:
grep -rn 'FirebaseFirestore.instance' app/lib
Acceptance criteria
-
firestoreProvider,firebaseAuthProviderandcurrentUidProviderexist incore/cloud/ - A first batch of call sites uses them (one behaviour-neutral PR per step is fine)
- No behaviour change
How to verify
Run scripts/check.sh from the repo root (the same quality gate CI runs). It must pass.
- Dominant language
- Dart
- Stars
- 4
- Forks
- 1
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 7
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 blankframe-tech/ThrottleIQ
-
dart enhancement help wanted translation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blankframe-tech/ThrottleIQ#35 ·
Maintainers usually reply within 5 days
-
Review the machine-drafted Bangla strings (native speakers wanted)Possibly taken @RanaKhan77 claimed this 2 days ago. Opengood first issue help wanted translation
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
blankframe-tech/ThrottleIQ#23 · 6 comments ·
Maintainers usually reply within 5 days
-
dart enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 52/100
blankframe-tech/ThrottleIQ#48 ·
Maintainers usually reply within 5 days
-
dart enhancement help wanted translation
Difficulty 4/5 3-5 days Newbie friendliness 54/100
blankframe-tech/ThrottleIQ#43 ·
Maintainers usually reply within 5 days
-
help wanted
Difficulty 3/5 1-2 days Newbie friendliness 72/100
blankframe-tech/ThrottleIQ#24 ·
Maintainers usually reply within 5 days
All issues in blankframe-tech/ThrottleIQ
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 4 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 3 days
-
area-clientside-dartpad
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
'图片收藏'功能无法滑动Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
venera-app/venera-prime#50 ·