bizz84 / bizz84/firebase_user_avatar_flutter
Null safety update
- Dominant language
- Dart
- Stars
- 152
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
Hello
Love your videos and thank you for putting in so much effort.
I have 2 questions
1) Will you update the code for null safety?
2) Don't you have to initialize all providers under MultiProvider?
When trying to use your code, it wants to me initialize FireStoreService provider as well, which i try to do like this
Provider
(
create: (context) => FirestoreService(uid: UserData().uid),
),
However, since UserData().uid is null at that point, i don't think this will work, even with assert(uid.isNotEmpty)
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin with the MultiProvider setup and FirestoreService usage described in the issue; inspect how UserData().uid is obtained before provider creation. Review the repository's Dart code for the requested null-safety update and determine how provider initialization should behave when the user id is null; done means the questions are resolved in working code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, firebase, flutter
- Domain
- databases, mobile
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100