developer journal - Figuring out life one line at a time

Joined October 2023
181 Photos and videos
It been so long I've been here I've been heavily distracted by a lot of stuff and I really want to take back control I want to rekindle my interest Better manage my time and refocus on the original reasons that motivated me to start in this in first place
1
11
I feel so disconnected from the tech scene and my spirit is not really comfortable with that I need to get this right and bounce back So help me God
9
super him. retweeted
22 Jan 2024
I’m gonna give 10 random people that repost this and follow me $25,000 for fun (the $250,000 my X video made) I’ll pick the winners in 72 hours
376,213
2,529,671
1,862,407
284,598,074
Just putting the finishing touches on my iOS calculator clone – both the logic and UI are nearly perfect Excited to share the insights and implementation details soon. Stay tuned for a breakdown of what I've learned and how I crafted the functionality and logic #flutter
3
17
Happening 0801 More on Riverpod package and it's notifier #flutter
1
1
38
Modifying the build method to accommodate <Widget ref> Widget build(BuildContext context, WidgetRef ref) {
2
1
10
First, reading the value ref.read(favoriteMealsProvider); The access the notifier favoriteMealsProvider.notifier Then, calling the function ref.read(favoriteMealsProvider.notifier).toggleMealFavoriteStatus(meal);
1
12
Using ref.read() instead of ref.watch to prevent setting up an ongoing listener, because ref.read does not subscribe to change unlike ref.watch that rebuild the widget everytime there is a change in value
1
6
Happening 0701 Learning more about how Riverpod works #flutter
1
1
38
If this was the only change I carry out I would get an error "Bad state: No ProviderScope found" So, what is the solution? The problem is that for our providers to work a ProviderScope is required outside the scope of the widget using it So, let explore the solution
1
1
16
Solution First, Importing the Riverpod package in main.dart Then, Wrapping app widget with ProviderScope from the Rivepord package This widget that stores the state of providers
19