ai_app_bridge_flutter 0.2.2 copy "ai_app_bridge_flutter: ^0.2.2" to clipboard
ai_app_bridge_flutter: ^0.2.2 copied to clipboard

Debug-only Flutter bridge for AI app inspection and control.

AI App Bridge Flutter #

Flutter plugin for AI App Bridge. It exposes Flutter widget snapshots, runtime actions, structured logs, network records, state records, events, and H5 adapter registration so local AI agents can inspect, operate, verify, and iterate on Flutter apps.

Install #

Add the Flutter package. The plugin's Android debug variant automatically includes the Android runtime that starts the bridge server on the device; the release variant does not include that debug runtime automatically.

dependencies:
  ai_app_bridge_flutter: ^0.2.2

Initialize #

import 'package:ai_app_bridge_flutter/ai_app_bridge_flutter.dart';
import 'package:flutter/widgets.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  AiAppBridge.instance.initialize(appName: 'your_app_name');
  runApp(const MyApp());
}

WebView Adapter #

Flutter WebView DOM support requires a registered H5 adapter because the WebView controller lives in Dart:

AiAppBridge.instance.registerH5Adapter(
  AiAppBridgeH5Adapter(
    id: 'main-webview',
    source: 'webview_flutter',
    evaluateJavascript: (script) {
      return controller.runJavaScriptReturningResult(script);
    },
  ),
);

AI App Bridge is intended for debug builds. Do not expose runtime control surfaces in production builds without a deliberate security review.

0
likes
0
points
815
downloads

Publisher

unverified uploader

Weekly Downloads

Debug-only Flutter bridge for AI app inspection and control.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ai_app_bridge_flutter

Packages that implement ai_app_bridge_flutter