Skip to content
pubscout

overlay_support

2.1.0, released 4 years ago by soit.tech

Provider support for overlays, making it easy to build toasts and internal notifications.

WASM-ready
$ flutter pub add overlay_support
Source repository

What it does

Allows developers to display toasts and in-app notifications without passing a build context. It wraps the app with an OverlaySupport widget and provides simple global functions like toast() and showSimpleNotification().

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

Use it when

  • You need to display simple text toasts anywhere in your app without a context.
  • You want in-app banner notifications at the top or bottom of the screen.
  • You need overlays to support multi-platform use out of the box.

Skip it when

  • You need system-level push notifications or local device tray notifications.
  • You require complex notification routing and background isolate message handling.

Strengths

  • Does not require a context to popup overlays.
  • Supports all platforms (Android, iOS, Web, Windows, macOS, Linux).
  • Easy setup by wrapping the root app widget.

Weaknesses

  • Limited to in-app overlays and notifications, cannot handle true system push notifications.
  • Not documented for advanced persistent background notifications.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Wrap your AppWidget with OverlaySupport.global(child: MaterialApp()).

import 'package:overlay_support/overlay_support.dart';

void onClick() {
    toast('Hello world!');
    showSimpleNotification(
        Text("this is a message from simple notification"),
        background: Colors.green);
}

Alternatives

Packages that do the same job and could replace overlay_support.

  • fluttertoast

    If you specifically need native toast styling and lightweight popup messages.

  • toastification

    For modern, highly customizable toast notifications with rich UI options.

  • bot_toast

    If you need a robust, highly flexible solution for toasts, loading indicators, and custom overlays.

Works with

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