DEV Community

Alex Devson
Alex Devson

Posted on

EasiestDB for Flutter: SQLite Has Never Been This Simple

I love Flutter. I hate writing SQLite boilerplate. So I made EasiestdbFlutter — the laziest possible way to use SQLite in your Flutter app.

The Problem

Flutter's sqflite package works great, but you still need to:

  • Write raw SQL queries
  • Manage database versions
  • Handle table creation manually
  • Deal with maps and type conversions

The Fix

// Initialize
await EasiestDb.init("myDb");

// Create a table
await EasiestDb.createTable("users", ["name", "email", "age"]);

// Insert data
await EasiestDb.addRow("users", ["John", "john@mail.com", "25"]);

// Read all rows
var rows = await EasiestDb.getAllRows("users");
Enter fullscreen mode Exit fullscreen mode

That's it. No SQL strings, no version management, no type juggling.

Why 15+ Developers Starred This

  • 🚀 Zero SQL knowledge required
  • 📦 Tiny footprint — wraps sqflite efficiently
  • 🧠 Intuitive API — if you can use a List, you can use this
  • 🔄 Auto-handles table creation and data types
  • Production ready — used in published apps

Install

dependencies:
  easiestdb: ^1.0.0
Enter fullscreen mode Exit fullscreen mode

Then just init and start storing data. No setup headaches.

👉 GitHub: https://github.com/p32929/EasiestdbFlutter

If you use Flutter and hate SQL boilerplate, give it a ⭐!


What's your go-to Flutter database solution?

Top comments (0)