Flutter Tutorial

A Deep Look Into Flutter Databases

Persist Data Over The Lifetime of Your App

Beyond Boundaries
Beyond the Dev Life
6 min readOct 1, 2022

--

There is not one app that doesn’t have to save data. And if you want to persist that data, a database is practically your only option. Plus, if you want to avoid a server and the underlying costs at the start of your developer journey, you’ll need to store the user’s files locally on the individual device.

This is where solutions like SQLite and Hive come in. Since I’ve been working with SQLite, we shall focus on this one for now.

Image by author.
Image by author.

This will be not only a guide on how to set up a database for your app but also to understand the back-end of coding a data-driven app.

What Is a Database?

If we look at the definition on Oracle’s website, a database is more than just the data that is stored inside:

A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS). Together, the data and the DBMS, along with the applications that are associated with them, are referred to as a database system, often shortened to just database.

--

--

Beyond Boundaries
Beyond the Dev Life

Top Writer in Productivity. Productivity, programming, and Engineering Blogs. Strong focus on tech. Ph.D. student.