Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add providers for Firestore and Auth instead of calling `.instance` directly

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
66/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
dart, firebase, flutter
Domain
mobile, testing

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

dart enhancement help wanted

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, firebaseAuthProvider and currentUidProvider exist in core/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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blankframe-tech/ThrottleIQ

All issues in blankframe-tech/ThrottleIQ

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.