filmov
tv
Flutter API & Local Database Series EP10 - Hive in Flutter (with Type Adapter)

Показать описание
This video is introducing NoSQL database (Hive) in Flutter with Type Adapter. Hive is a lightweight and blazing fast key-value NoSQL database written in pure Dart, for storing data locally. All data in Hive are organized in boxes, similar to table in SQL. And TypeAdapter class is from Hive library, it can be implemented to support non primitive values in Dart Programming. Hive TypeAdapter helps to convert (encode/decode) data into binary form and store on disk.
Let's try out and see.
Hive package:
Hive Flutter package:
Hive Generator package:
Build Runner Dart package:
Hive Official Docs:
Grocery List Application source code (github):
0:00 Introduction
2:09 import hive_generator and build_runner
3:27 create model
7:15 run command to generate Type Adapter file
7:55 register adapter
8:18 get data from opened box
9:25 display item using ValueListenableBuilder
13:51 change new box name
14:25 add and delete item
15:15 update item
16:25 item mark as completed
Credit to:
1) Canva
- Background Images & Thumbnail
2) Background Music:
- Youtube Audio Library
a. Sunny Travel, by Nico Staf
b. Instant Crush, by Corbyn Kites
c. Better, by Anno Domini Beats
d. Airborne, by Quincas Moreira
e. Hopeful Freedom, by Asher Fulero
f. Sunset Dream, by Cheel
g. Sunny Days, by Anno Domini Beats
3) Previous Series:
Flutter Basic Widgets:
Flutter Advanced UI Series:
#flutter #hive #hive_flutter #TypeAdapter #custom #object #model #nosql #nontabular #local #database #CRUD #operation #ios #android #flutterdev #flutterdevelopment
Follow @
1. instagram - codelx21 (TechnoLX21)
2. Twitter - @LxTechno
Let's try out and see.
Hive package:
Hive Flutter package:
Hive Generator package:
Build Runner Dart package:
Hive Official Docs:
Grocery List Application source code (github):
0:00 Introduction
2:09 import hive_generator and build_runner
3:27 create model
7:15 run command to generate Type Adapter file
7:55 register adapter
8:18 get data from opened box
9:25 display item using ValueListenableBuilder
13:51 change new box name
14:25 add and delete item
15:15 update item
16:25 item mark as completed
Credit to:
1) Canva
- Background Images & Thumbnail
2) Background Music:
- Youtube Audio Library
a. Sunny Travel, by Nico Staf
b. Instant Crush, by Corbyn Kites
c. Better, by Anno Domini Beats
d. Airborne, by Quincas Moreira
e. Hopeful Freedom, by Asher Fulero
f. Sunset Dream, by Cheel
g. Sunny Days, by Anno Domini Beats
3) Previous Series:
Flutter Basic Widgets:
Flutter Advanced UI Series:
#flutter #hive #hive_flutter #TypeAdapter #custom #object #model #nosql #nontabular #local #database #CRUD #operation #ios #android #flutterdev #flutterdevelopment
Follow @
1. instagram - codelx21 (TechnoLX21)
2. Twitter - @LxTechno
Комментарии