Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Flutter - SQLite Database - CRUD
Rating: 4.3 out of 5(129 ratings)
6,847 students

Flutter - SQLite Database - CRUD

Create awsome apps with SQLite & Flutter!
Created byTim Schütz
Last updated 11/2018
English
English [Auto],

What you'll learn

  • Learn how to set up a SQLite Database for your Flutter projects

Course content

1 section • 23 lectures • 1h 20m total length
  • Introduction0:34

    Begin this flutter sqlite database crud series with an approachable introduction, promising easy implementation and clear explanations for your projects.

  • App introduction1:52

    Explore building a Flutter app with SQLite for full CRUD—create, read, update, and delete entries, display them in real time, and practice with sample data.

  • Setup Layout 18:22

    Set up a new flutter project, delete defaults, and build a stateful widget with a column of text fields for name, description, and price.

  • Setup Layout 25:30

    Create a responsive layout with multiple CRUD buttons for Flutter SQLite database, wiring create, read, update, and delete data methods, adding headings and padding for a cleaner UI.

  • Project setup2:53

    Set up a Flutter project with SQLite and configure dependencies for CRUD features. Create a dish data model and a database with connection methods for create, read, update, and delete.

  • Model1:49

    Create a dish data model by defining a Dish class with name, description, and price, then instantiate objects and save them as records in the SQLite database.

  • Create Database3:37

    Create a Flutter SQLite database by defining the database path, opening it with version 1, and implementing onCreate and create methods for future crud.

  • onCreate -> create table2:52

    Create an SQLite database in Flutter with onCreate that runs a table creation for dishes, using name and description as text and price column, then open path and return database.

  • Check if Database already exists3:01

    Learn to check whether a database already exists and avoid recreating it on startup by using asynchronous futures, returning the existing database instead of creating a new one.

  • Create Data Method4:57

    Learn how to implement the create data method in Flutter SQLite, inserting a dish with name, description, and price into the database, handling asynchronous readiness and returning an integer.

  • Update Data Method4:34

    Implement the update data method to modify dish records by matching the dish name and updating the description and price, ensuring changes are saved.

  • Update Data Fix1:01

    Fix update data issues in a Flutter SQLite CRUD app, align tests, and ensure publication functionality while preparing upcoming features.

  • Delete Data Method2:15

    Learn to delete a dish record by name using an asynchronous delete method in Flutter SQLite, where the name uniquely identifies the row and triggers a delete from the table.

  • Read Data Method7:27

    Read data from a sqlite database in flutter by creating an asynchronous read method, querying the dishes table, converting results to dish objects from maps, and returning the first entry.

  • Create Data Method call3:02

    Import the db helper, create a dish object with name, description, and price, and call the create dish method to insert it into the dishes table in Flutter SQLite database.

  • Update Data Method call1:11

    Learn updating data in a flutter sqlite database by building an updated dish object with name, description, and price, then updating the dish where the name equals the given value.

  • Delete Data Method call1:02

    Learn to delete data in a flutter sqlite database by calling the delete method and executing a delete from the dishes table using the given name from the text field.

  • Read Data Method call5:13

    Learn to read data in a flutter sqlite CRUD flow by calling the read data method, querying by name, converting results to dish objects, and printing name, description, and price.

  • Read all data Method8:31

    Implement an asynchronous read all data method in a Flutter app using SQLite, returning a list of dish objects by querying the dishes table.

  • Read all Data call2:06

    Read all dishes from the sqlite database by creating a future list of dish objects, then return the dishes for rendering in the widget tree.

  • FutureBuilder6:05

    Use FutureBuilder with stream data to fetch dishes via the get all dishes method and read data method, then display them in a list view showing name, description, and price.

  • App testing2:12

    Practice Flutter SQLite CRUD by creating, reading, updating, deleting, and listing all records, validating app testing and state updates.

  • Bye!0:18

    Conclude the session by celebrating completion and inviting any remaining questions, with a prompt to ask me and wish you a great day.

Requirements

  • Flutter / Dart Beginner knowledge

Description

Persisting local data is an essential skill for every modern mobile developer. In this practical, hands-on course, you will learn how to connect a Flutter project to a local SQLite database by building a complete, fully functional CRUD application from scratch. Instead of getting lost in dry database theory, we focus directly on real-world implementation so you can get a working mobile app running quickly on your own device.

Throughout the short, focused lessons, we will cover every core database operation you need to manage local storage effectively in production apps. You will learn how to initialize and connect your Flutter project with SQLite, structure your data models cleanly, and write reliable, maintainable SQL queries and logic to create, read, update, and delete items in your database. Additionally, we will implement a dedicated "read all" feature and integrate a Flutter StreamBuilder to automatically listen for database changes and dynamically display all your stored data in the user interface in real time.

By the end of this course, you will have built a solid, reusable CRUD architecture and gained the practical confidence to integrate persistent local databases into your own future Flutter applications.

Have fun building, and enjoy the course!
Tim

Who this course is for:

  • Flutter Beginner which want to take the next step and add an backend