DEV Community

loizenai
loizenai

Posted on

Flutter SQLite example – CRUD operations with sqflite plugin

https://grokonez.com/flutter/flutter-sqlite-example-crud-sqflite-example

Flutter SQLite example – CRUD operations with sqflite plugin

In this tutorial, we're gonna look at how to make SQLite CRUD Operations in a Flutter App using sqflite plugin.

More Practice:

With Firebase:

More:

Flutter SQLite CRUD with sqflite

Import sqflite

Add sqflite plugin to the dependencies section of our pubspec.yaml:


dependencies:
  sqflite: 

Open a Database

First, we find a location path for the database using getDatabasesPath() function. Then we call openDatabase() with onCreate() callback method where we populate data.

More at:

Flutter SQLite example – CRUD operations with sqflite plugin

https://grokonez.com/flutter/flutter-sqlite-example-crud-sqflite-example

Top comments (1)

Collapse
 
pablonax profile image
Pablo Discobar

if you are interested in Flutter, then read this article - dev.to/pablonax/free-flutter-templ...