Skip to content
pubscout

drift_db_viewer

2.1.0, released 3 years ago by vanlooverenkoen.be

View and filter your drift database directly inside your Flutter application.

WASM-ready
$ flutter pub add drift_db_viewer
Source repository

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.

Works with

Packages commonly used together with drift_db_viewer: ones it builds on, ones built on it, and its own family.