Local Database For Flutter Game With Hive & Riverpod

  Рет қаралды 600

1ManStartup

1ManStartup

Күн бұрын

Пікірлер: 9
@tocleora
@tocleora 5 ай бұрын
Thanks for the video! What addon are you using that shows you the error inline?
@1ManStartup
@1ManStartup 5 ай бұрын
It's called Error Lens this is my full VS code setup kzbin.info/www/bejne/qISsZGCwra-NjMU
@toxaq
@toxaq 5 ай бұрын
What is the benefit of using riverpod her to get a global reference to HiveRepository? Can't you just create a global final variable with an instance of the HiveRepsitory? It seems like over kill to get effectively a singleton and I've never seen the reason explained. You're not changing the hiveRepository so there is nothing to watch. I keep seeing examples like this so there must be a reason?
@1ManStartup
@1ManStartup 4 ай бұрын
Good question, in this case using a global instance would work about the same. In a future video about resetting the game data Riverpod makes it easier (IMO) to show the changes to the user. But again that could be done without Riverpod and listening to hive's changes directly. While this example isn't using Riverpod in a way that's necessarily better, I like to use it for instances like this vs creating a global singleton - because I know later if I want to add more complex Future/Stream providers or notifiers I can. Some might call this over engineering - but the video is an example of one aspect of the app, and other areas of the app will be using Riverpod, so my thinking is to just use it everywhere.
@toxaq
@toxaq 4 ай бұрын
@@1ManStartup I’ve used their async notifier to solve a local list problem backed by an API. That was worth it. Would work will with Hive too.
@SuluXuluS
@SuluXuluS Ай бұрын
These tutorials are so useful, you're saving my life This just made my week, thank you, you're my personal hero
@1ManStartup
@1ManStartup Ай бұрын
Glad I could help!
@SudharshanReddyee
@SudharshanReddyee 5 ай бұрын
Bro how you are pushing yourself to upskill and uploading KZbin regularly irrespective of views and likes. I used to watch your videos in lockdown and I have developed one Android app. I left that project 2 years ago, i tried to work on it in between but I am not getting that push. I forgot most of the skills.
@1ManStartup
@1ManStartup 5 ай бұрын
I made this video awhile back trying to explain how to stay motivated maybe it'll help. kzbin.info/www/bejne/p5zInI2En8yckJYsi=YFWwG2mXCH_-tHgG But also, it's fine to try other things than just programming apps 😎
Flutter: Clear Hive Box & Reset Local Game Data
5:57
1ManStartup
Рет қаралды 336
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 197 М.
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 9 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 3,2 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Flutter Web Hosting With Github Pages & Custom Domain
19:58
1ManStartup
Рет қаралды 2,6 М.
Choosing a Database for Systems Design: All you need to know in one video
23:58
ChatGPT4 Guide for developing your first code
7:41
Zenonblade
Рет қаралды 10 М.
Move Objects With Gestures & Keyboard - Flutter Flame Game
8:23
1ManStartup
Рет қаралды 1,4 М.
📱Local Storage • HIVE × FLUTTER Tutorial ♡
10:27
Mitch Koko
Рет қаралды 71 М.
Build 5 Apps in 5 Minutes with Flutter… But should you?
8:53
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 95 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 43 М.
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 9 МЛН