Skip to content
pubscout

dash_bubble

2.0.0, released 3 years ago by moaz.dev

Create and manage a floating bubble overlay on Android screens.

$ flutter pub add dash_bubble
Source repository

What it does

Dash Bubble is a Flutter plugin that lets you create a floating bubble overlay on the Android screen. It provides methods to start and stop the bubble, handle runtime permissions like system overlay and post notifications, and listen to various callbacks such as taps, movement, and touch-up/down events.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display a floating chat head or persistent bubble overlay on Android.
  • You want to handle bubble interaction callbacks like movement and tapping.

Skip it when

  • You are targeting iOS or platforms other than Android.
  • You require drawing over other apps without handling the required Android system overlay permissions.

Strengths

  • Provides extensive customization options for bubble appearance, behavior, and service notifications.
  • Includes touch and move callbacks for rich interactive floating elements.

Weaknesses

  • Only supports Android; iOS is not supported due to platform limitations.
  • Requires runtime overlay and notification permissions on newer Android versions.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Set the minimum SDK version to 21 or higher in android/app/build.gradle. Request system overlay and post notifications permissions at runtime as required by Android.

DashBubble.instance.requestOverlayPermission();
DashBubble.instance.startBubble(
  bubbleOptions: BubbleOptions(bubbleSize: 60),
  onTap: () => print('Bubble tapped'),
);

Alternatives

Packages that do the same job and could replace dash_bubble.

Works with

Packages commonly used together with dash_bubble: ones it builds on, ones built on it, and its own family.