Database

Easily browse the app's local database.

Quick start

Initialization

To use the database plugin, you need to add the plugin to your FlipperClient instance.

import 'package:flutter_flipperkit/flutter_flipperkit.dart';

void main() {
  FlipperClient flipperClient = FlipperClient.getDefault();

  var databaseDriver = SqfliteDriver('simple_todo.db'); // 示例使用了 Sqflite
  flipperClient.addPlugin(new FlipperDatabaseBrowserPlugin(databaseDriver));
  flipperClient.start();

  runApp(MyApp());
}

Enable Inspection

for sqfite, you can use flipperkit_sqflite_driver driver:

var sqfliteDriver = SqfliteDriver('simple_todo.db');
flipperClient.addPlugin(new FlipperDatabaseBrowserPlugin(sqfliteDriver));
Last Updated: 3/27/2019, 12:14:06 PM