Hive (Flutter Tutorial) – Lightweight & Fast NoSQL Database in Pure Dart

preview_player
Показать описание
📗 Get the starter project & learn from the written tutorial 👇👇

👨‍💻 Do you write good code? Find out now!

Storing data locally is a task which has to be done by almost every app. Maybe, you want to cache responses from a REST API or you're building an offline-only app. In any case, choosing the right local database can make all the difference in how quickly you can develop the app and also in how performant the app will be.

Hive is a lightweight, yet powerful database which is easy to develop with and it also runs fast on the device. Unless you absolutely need to model your data with many relationships, in which case you should probably use SQLite, choosing this pure-Dart package with no native dependencies (it runs on Flutter Web!) can be the best option.

Go to my website for more information, code examples, and articles:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

Most underrated flutter-tutor on youtube! Love your work, it's keeping us folks on coding with flutter! Props to you mate!

Hypothermia
Автор

You're really important to the community, Reso! Thanks!

BrendansReasons
Автор

Great video and very well written tutorial. Good job! I added your video to the documentation.

simonleier
Автор

This was incredibly helpful. Thank you! Subscribed!

ManOnTheMoon
Автор

Best channels for learning flutter....thankyou

chetan
Автор

Every second of this video was useful for me. Thanks.

mostafafahimi
Автор

Thank you very much for this wonderful tutorial!!

fununterhaltung
Автор

Very helpful video, much better then documentations for doing it first time.

danieldey
Автор

Thanks, very well made tutorial and useful. I was considering to switch to Hive earlier already for storing app settings. After this I am convinced and with a good and easy to follow guide.

rydmike
Автор

Great tutorial. And the same for the others on your channel. Keep up the great work, yours is definitely a really good channel to learn Flutter and various libraries!

wSRV
Автор

I was going full inception, listening to The Hives while working with the Hive.

ShitIndie
Автор

Awesome. Hive looks like a much more viable option than SQLite to me in terms of simplicity and ease of setup and use. Thanks for the tutorial.

FilledStacks
Автор

Ok you got my subscription ... You are being so awesome

MindzGroupTech
Автор

I started today with hive...at the beginning hard to unterstand things like typeadapter and so..i fumbeld round about 2 hours with generating of the .g.dart File..because Null Safety Problems from Others dependencies..but now hive is very fast and very nice to handle, Not Like sqlite3 or so. Thank you for this tutorial which i found just a hour later after i solved much of the shown ways alone or by Stack Overflow 🤣

Klausi-uqxq
Автор

Nice tutorial and thanks for clarifying some stuff for me. On the build _runner/Dart analyzer thing. I shared the same experience but while creating a generator/build library. I almost went mad.

gmcquads
Автор

Great tutorial, very clear and concise. I had question though, Is there a way to implement search with hive??

MrHimanshun
Автор

Thank you. What do you think about Hive + Firestore implementation?

burakbirer
Автор

Great tutorial. Is there a flutter hive client/data visualiser to inspect boxes?

radurot
Автор

I solved that analyzer stuff by just using pubspec assist and providing analyzer package that was 2 versions down. That way, when the issue is fixed all i need to do is make the package version empty then run pub upgrade

gmcquads
Автор

Nice design dock and window btw ! What did u use ? Rainmeter ? And which package ?

Baraka