-
Notifications
You must be signed in to change notification settings - Fork 3
Installation
AmisKwok edited this page Jul 21, 2026
·
3 revisions
Add the following to your pubspec.yaml:
在 pubspec.yaml 中添加以下依赖:
dependencies:
zero_inspector_kit: ^1.0.6Then run:
然后运行:
flutter pub getAlternatively, install from GitHub:
或者从 GitHub 安装:
dependencies:
zero_inspector_kit:
git:
url: https://github.com/zero-labsco/zero_inspector_kit.git
ref: mainNo additional configuration needed.
无需额外配置。
No additional configuration needed.
无需额外配置。
Desktop platforms use sqflite_common_ffi for database operations. Add the following to your main() function before runApp:
桌面平台使用 sqflite_common_ffi 进行数据库操作。在 main() 函数的 runApp 之前添加以下代码:
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
void main() {
// Initialize FFI for desktop database support
// 为桌面平台初始化 FFI 数据库支持
sqfliteFfiInit();
databaseFactory = databaseFactoryFfi;
ZeroInspectorKit.runAppWithInspector(const MyApp());
}import 'package:zero_inspector_kit/zero_inspector_kit.dart';| Requirement | Version |
|---|---|
| Flutter | >= 3.3.0 |
| Dart SDK | >= 3.11.0 < 4.0.0 |
- Getting Started — Quick start guide / 快速开始
- Usage — Full usage guide / 完整使用指南