fdb_helper 1.1.7
fdb_helper: ^1.1.7 copied to clipboard
Helper package for fdb (Flutter Debug Bridge). Registers VM service extensions for widget interaction, SharedPreferences access, and app data cleanup.
fdb_helper #
Flutter package for fdb (Flutter Debug Bridge) — a CLI tool that lets AI agents interact with running Flutter apps on device.
fdb_helper registers VM service extensions that enable:
- Widget tap, long-press, swipe, scroll, text input
- Widget tree inspection and screen description
- SharedPreferences read/write/clear
- App cache and data directory cleanup
- Widget selection mode toggle
Setup #
Add to your Flutter app's pubspec.yaml:
dev_dependencies:
fdb_helper: ^1.1.2
Initialize in main.dart:
import 'package:fdb_helper/fdb_helper.dart';
import 'package:flutter/foundation.dart';
void main() {
if (!kReleaseMode) {
FdbBinding.ensureInitialized();
}
runApp(MyApp());
}
Then run flutter pub get and relaunch the app.
Usage #
Once fdb_helper is set up, all fdb commands that require it will work:
fdb tap --key "submit_button"
fdb input --key "search_field" "hello"
fdb scroll down
fdb shared-prefs set onboarding_done true --type bool
fdb shared-prefs get-all
fdb clean
See fdb on pub.dev for the full command reference.
License #
MIT