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 - SUPER EASY!
Rating: 4.3 out of 5(127 ratings)
6,723 students

Flutter - SQLite Database - CRUD - SUPER EASY!

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 section23 lectures1h 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

We will connect our Flutter project with a SQLIte Database. Our App will have all important functionallity you need to know when working with a SQLite Database. We will cover create, read, update, delete and read all functionallity in our example app.

- Connect Flutter project with SQLite database

- learn to create, read, update, delete items in your database

- Streambilder to display all your data


Have fun, enjoy! :)

Who this course is for:

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