drift_db_viewer
2.1.0, released 3 years ago by vanlooverenkoen.be
View and filter your drift database directly inside your Flutter application.
What it does
A debugging tool that displays your drift database contents inside a dedicated screen in your app. It provides filtering at the database level without requiring you to export the database file.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using drift for local storage in your Flutter app and need to inspect data during development
- You want to filter and view database contents quickly without exporting files
Skip it when
- You are running a production build and want to exclude developer inspection tools
- You are using a storage solution other than drift
Strengths
- Allows viewing and filtering the database directly inside the app
- Eliminates the need to export database files for inspection
Weaknesses
- Requires special handling (@JsonKey) when using named columns
- Dependent on the drift package
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Simply push the DriftDbViewer widget onto your navigator passing your database instance.
final db = MyDatabase();
Navigator.of(context).push(MaterialPageRoute(builder: (context) => DriftDbViewer(db)));Alternatives
Packages that do the same job and could replace drift_db_viewer.
- drift_flutter
Provides a simple Flutter‑specific helper to open drift databases on all platforms.
87Compare - drift_postgres
Postgres implementation and APIs for the drift database package.
69Compare - sembast
A NoSQL persistent embedded document-based database for Dart and Flutter.
93Compare - isar_community_flutter_libs
Isar Core binaries for the Isar Database. Needs to be included for Flutter apps.
80Compare
Works with
Packages commonly used together with drift_db_viewer: ones it builds on, ones built on it, and its own family.