fdb_helper 1.6.4 copy "fdb_helper: ^1.6.4" to clipboard
fdb_helper: ^1.6.4 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.

Build-mode behavior #

  • Debug (all platforms): compiles the real native tap implementation.
  • Profile (all platforms): compiles the real native tap implementation. Profile is intended for on-device profiling/internal distribution (Firebase App Distribution, TestFlight internal), so fdb native-tap works there.
  • Release (all platforms): compiles a safe stub. iOS/macOS exclude the private Objective-C native tap implementation from the pod target. Android compiles a stub via Gradle src/release source sets. App Store / Play Store binaries no longer ship the private-API native tap.

The Apple Profile selection works because fdb_helper keys its compile flags on the Xcode configuration name (Profile) rather than on the CocoaPods configuration type, so Flutter's default 'Profile' => :release Podfile mapping does not turn Profile into the release stub.

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

0
likes
140
points
651
downloads

Documentation

API reference

Publisher

verified publisherappflate.io

Weekly Downloads

Helper package for fdb (Flutter Debug Bridge). Registers VM service extensions for widget interaction, SharedPreferences access, and app data cleanup.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, meta, path_provider, shared_preferences

More

Packages that depend on fdb_helper

Packages that implement fdb_helper