I make a simple contact app for practice using Hive that has CRUD(CREATE, READ, UPDATE, DELETE).
Here simple code to add,read,write and delete, for more information read docs Hive
final box = Hive.box('myBox');
To add
box.add(value);
To read
box.getAt(index);
To update
box.putAt(index, value);
To delete
box.deleteAt(index);
The feature that this app have:
- Image Picker
- CRUD contact
- Favourite
- URL_Launcher telephone and email
Hive is a lightweight and blazing fast key-value database written in pure Dart.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.