floaty_chatheads
3.0.0, released 3 weeks ago by an unverified publisher
Floating chathead overlays for Android and iOS with draggable bubbles and custom widgets.
What it does
Provides floating, draggable chathead bubbles that appear on top of your app (or other apps on Android) and expand into any custom Flutter widget. It handles platform permissions, spring-physics edge snapping, and bidirectional messaging between the main app and the overlay.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to build Facebook Messenger-style chat bubbles or floating mini-players.
- You need an overlay panel that runs in a separate engine and survives app closure on Android.
Skip it when
- You only need standard in-app overlays or dialogs that don't require system-wide floating windows.
- You want to support platforms other than Android and iOS.
Strengths
- Unified cross-platform API for Android and iOS
- Supports any arbitrary Flutter widget inside the expanded panel
- Built-in spring physics for edge snapping and draggable motions
- Bidirectional communication streams between main app and overlay
Weaknesses
- Requires system-level alert window permissions on Android
- Android foreground service requires a Google Play special use declaration
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Native permissions and service configurations are bundled by the plugin automatically; Google Play requires a special use declaration for the foreground service.
import 'package:floaty_chatheads/floaty_chatheads.dart';
import 'package:flutter/material.dart';
void main() => runApp(const MaterialApp(home: Home()));
@pragma('vm:entry-point')
void overlayMain() => FloatyOverlayApp.run(
const FloatySimplePanel(
title: 'Hello',
child: Text('I am a floating overlay!'),
),
);
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) => Scaffold(
body: Center(
child: ElevatedButton(
onPressed: () => Floaty.show(title: 'My Chathead'),
child: const Text('Show Chathead'),
),
),
);
}Alternatives
Packages that do the same job and could replace floaty_chatheads.
- dash_bubble
Create and manage a floating bubble overlay on Android screens.
45Compare