Posts

Showing posts from June, 2021

Sqlite CRUD Operation for Flutter

Image
  In this article, I will show you how to use the complete Create, Read, Update and Delete (CRUD) operation of sqflite plugin for flutter. I believe most of you already have basic flutter knowledge, if not then you can go through some of the basic at  https://flutter.dev/docs/get-started/install First create your flutter project cmd  flutter create sqlite_tutorial Enable null safety to use latest Flutter version 2.0 dart migrate --apply-changes What Is SQLite SQLite is an open source relational database, it is used to create a database, perform different operation like add, delete,and remove data. SQLite does not require a server or backend code, all the data is saved to a text file in the device. You can learn more about it here. Adding Sqflite Plugin to Flutter To be able to use SQLite in Flutter, you need to add the plugin sqflite.  The path plugin is to specify the location of the file that will be created which will contain the database. So to add it you need to navigate to the pu