buoy_image_overlay 0.3.1 copy "buoy_image_overlay: ^0.3.1" to clipboard
buoy_image_overlay: ^0.3.1 copied to clipboard

Overlay a design mockup on a running Flutter debug app, with adjustable opacity and supported position and size controls.

example/lib/main.dart

// Buoy image-overlay tool — wiring:
// 1. registerBuoyImageOverlay() registers the tool + mounts the overlay layer.
// 2. (Optional) wrap widgets in BuoyImageTarget so Component Match can find them.
// 3. BuoyDevTools mounts the in-app menu; open the dial → IMG.
import 'package:buoy_image_overlay/buoy_image_overlay.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() {
  if (kDebugMode) registerBuoyImageOverlay();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: BuoyImageTarget(
            label: 'Greeting',
            child: const Text('Open the Buoy dial → IMG'),
          ),
        ),
      ),
      builder: (context, child) => BuoyDevTools(
        deviceName: 'My App',
        child: child ?? const SizedBox.shrink(),
      ),
    );
  }
}
0
likes
130
points
385
downloads

Documentation

API reference

Publisher

verified publisherbuoy.gg

Weekly Downloads

Overlay a design mockup on a running Flutter debug app, with adjustable opacity and supported position and size controls.

Homepage

License

unknown (license)

Dependencies

buoy_core, buoy_shared_ui, flutter

More

Packages that depend on buoy_image_overlay