flutter_floating
2.0.2, released 10 months ago by an unverified publisher
Lightweight and flexible floating window component with dragging and snapping support.
What it does
Provides a draggable floating window component that can be managed globally or locally within pages. Supports edge snapping, position caching, multi-touch interaction, and screen rotation adaptation.
AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a floating toolbar, quick access button, or floating video player.
- You want floating windows to automatically snap to edges or cache their positions.
Skip it when
- You need native system-level floating windows over other apps.
- You are using state management paradigms that strictly discourage imperative controllers.
Strengths
- Supports both global manager and single-page stack modes.
- Rich set of event callbacks and configuration for snapping, margins, and dragging behavior.
- Adapts well to screen rotation and window resizing.
Weaknesses
- Recent major version updates introduced breaking API changes.
- Limited documentation outside of translations and basic examples.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
No native setup or permissions are required.
late FloatingOverlay floating = FloatingOverlay(
const FloatingIcon(),
slideType: FloatingEdgeType.onRightAndTop,
right: -20,
params: FloatingParams(snapToEdgeSpace: -20),
top: 100,
);
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) {
floating.open(context);
});
}Alternatives
Packages that do the same job and could replace flutter_floating.
- android_window
Flutter plugin to create native Android floating windows.
35Compare - uiblock
Easily block or unblock the UI with loading states in Flutter apps.
48Compare - roundcheckbox
A fully customizable round checkbox widget for Flutter.
50Compare - floating_action_bubble
An animated menu using a floating action button with customizable items.
50Compare
Works with
Packages commonly used together with flutter_floating: ones it builds on, ones built on it, and its own family.