Skip to content
pubscout

system_alert_window

2.0.11, released 6 months ago by jvapps.in

Show overlay windows or notification bubbles over all other apps with callback events.

WASM-ready
$ flutter pub add system_alert_window
Source repository

What it does

A Flutter plugin to show a Truecaller-like overlay window or notification bubble over all other apps. Supports Android bubble APIs, overlay permissions, isolate communication, and passing custom Flutter UI inside the overlay.

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

Use it when

  • You need to build a floating overlay window like a caller ID app.
  • You want to display notification bubbles or overlay views on Android above other applications.

Skip it when

  • You only need standard in-app widgets or local notifications.
  • You require robust, fully-featured iOS overlay support (iOS help needed).

Strengths

  • Supports custom Flutter UI inside the overlay window via entry points.
  • Handles Android 11+ bubble APIs and older overlay draw permissions automatically.

Weaknesses

  • iOS support is limited/displays as a notification in the notification center.
  • Requires platform-specific configuration and permissions like SYSTEM_ALERT_WINDOW.

Setup

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

Requires Android permissions such as SYSTEM_ALERT_WINDOW, FOREGROUND_SERVICE, and WAKE_LOCK in the AndroidManifest.xml, and a dedicated entry point function annotated with @pragma('vm:entry-point').

@pragma("vm:entry-point")
void overlayMain() {
  runApp(const MaterialApp(
    debugShowCheckedModeBanner: false,
    home: Material(child: Text("My overlay"))
  ));
}

await SystemAlertWindow.requestPermissions;
await SystemAlertWindow.showSystemWindow();

Alternatives

Packages that do the same job and could replace system_alert_window.