Flutter and Moor | App database | Using Moor in Flutter for storing data locally | @aseemwangoo#dart

preview_player
Показать описание
This video shows how to use Flutter and moor ( a flutter package). Using moor we can write queries to the app database using dart language...

* Flutter and Moor | App database | Using Moor in Flutter *
This article is inspired by the Boring Show, where they explain how to access your app database using a package, moor….
What is Moor…?

This is actually a mirror image of the word Room, (which is used in Android for accessing Database). As per the documentation about Room :

The Room persistence library provides an abstraction layer over SQLite to allow database access. It also helps you create a cache of your app’s data. Moor is a similar concept, but for Flutter……

Setting Moor….
Add moor_flutter in dependencies….
dependencies: moor_flutter:

2. Add the below in dev_dependencies…
dev_dependencies:
moor_generator: ^1.6.0
build_runner: ^1.6.0

In case, this helped, pass me a coffee!! 😊😊

#flutter #moor #flatteredwithflutter
Рекомендации по теме
visit shbcf.ru