flutter_probe_agent 0.5.1 copy "flutter_probe_agent: ^0.5.1" to clipboard
flutter_probe_agent: ^0.5.1 copied to clipboard

On-device E2E test agent for FlutterProbe. Embeds in your Flutter app and receives test commands via WebSocket or HTTP from the probe CLI. Write tests in plain English, execute with sub-50ms widget-tr [...]

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_probe_agent/flutter_probe_agent.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Only start the agent when built with --dart-define=PROBE_AGENT=true
  const probeEnabled =
      bool.fromEnvironment('PROBE_AGENT', defaultValue: false);
  if (probeEnabled) {
    await ProbeAgent.start();
  }

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('FlutterProbe Example')),
        body: const Center(child: Text('Hello, FlutterProbe!')),
      ),
    );
  }
}
0
likes
0
points
278
downloads

Publisher

verified publisheralphawavesystems.com

Weekly Downloads

On-device E2E test agent for FlutterProbe. Embeds in your Flutter app and receives test commands via WebSocket or HTTP from the probe CLI. Write tests in plain English, execute with sub-50ms widget-tree access.

Homepage
Repository (GitHub)
View/report issues

Topics

#testing #e2e #flutter #automation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_probe_agent