Skip to content
pubscout

flutter_overlay_window

1.0.2, released 4 weeks ago by iheb.tech

Flutter plugin to display your app over other apps on the screen.

WASM-ready
$ flutter pub add flutter_overlay_window
Source repository

What it does

Allows rendering a Flutter app as an overlay window above other applications on Android. It supports customized positioning, flags like click-through or focusable pointers, data sharing via streams between the main app and overlay, and drag-to-dismiss configurations.

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

Use it when

  • You need to build chat heads or floating widgets similar to Messenger or TrueCaller.
  • You want to display persistent overlay information over other apps on Android.

Skip it when

  • Your target platform includes iOS or web (it is Android-only).
  • You only need standard in-app notifications or banners.

Strengths

  • Provides APIs to resize, move, show, hide, and update the overlay window dynamically.
  • Supports drag-to-dismiss functionality with custom appearance targets.
  • Allows sharing data between the main app and the overlay via streams.

Weaknesses

  • Limited strictly to Android.
  • Requires manual addition of native permissions and service configuration in Android Manifest.

Setup

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

Add SYSTEM_ALERT_WINDOW, FOREGROUND_SERVICE, and FOREGROUND_SERVICE_SPECIAL_USE permissions to AndroidManifest.xml and declare the OverlayService.

final bool status = await FlutterOverlayWindow.requestPermission();
await FlutterOverlayWindow.showOverlay();

Alternatives

Packages that do the same job and could replace flutter_overlay_window.

  • screen_retriever

    Read desktop screen size, work area, scale factor and cursor position on Windows, macOS and Linux.

  • wakelock_plus

    Keep the device screen awake across mobile, desktop, and web platforms.

  • quick_actions

    Flutter plugin for creating shortcuts on home screen, quick actions on iOS and app shortcuts on Android.

  • no_screenshot

    Disable screenshots and screen recording, detect events, and show overlays in the app switcher.