Search packages, repositories and app categories

Package detailsv2.1.0

overlay_support

provider support for overlay, easy to build toast and internal notification

AndroidiOSWebmacOSWindowsLinux
30-day downloads
124K
Likes
701
Pub points
140

Install package

flutter pub add overlay_support

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

overlay_support is a Flutter package that provides a simple and flexible way to display overlays such as toasts and notifications across all major platforms. It acts as a provider-based solution, enabling developers to easily manage and customize overlay content without complex setup. The package supports dynamic positioning, customizable styling, and smooth animations, making it ideal for in-app feedback mechanisms. With minimal configuration, developers can integrate persistent or temporary overlays into their apps.

Use cases

  • Displaying user feedback messages
  • Showing temporary notifications
  • Creating custom toast components
  • Implementing in-app alerts
  • Managing overlay lifecycle
  • Enhancing UX with non-intrusive messages

Key features

  • Provider-based overlay management
  • Cross-platform support (Android, iOS, Web, macOS, Windows, Linux)
  • Customizable toast and notification styles
  • Easy integration with existing Flutter apps
  • Support for dynamic positioning and animations
  • Built-in lifecycle control

Suitable for

  • Developers building cross-platform Flutter apps
  • Teams needing lightweight notification systems
  • Apps requiring consistent in-app feedback
  • UI/UX designers focused on subtle interactive elements
  • Projects where minimal dependencies are preferred

Considerations

  • May require additional styling for complex UIs
  • Overlay stacking behavior should be tested across platforms
  • Limited built-in theming options compared to full-featured packages
  • Not intended for heavy-duty modal dialogs
  • Performance impact with high-frequency overlay updates

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

overlay_support

Pub Pub CI codecov

Provider support for overlay, make it easy to build toast and In-App notification.

this library support ALL platform

Interaction

If you want to see the ui effect of this library, just click here https://boyan01.github.io/overlay_support/#/

How To Use

  1. add dependencies into you project pubspec.yaml file

    dependencies:
        overlay_support: latest_version
    
    • the latest version is Pub
    • For project without migrate to null safety, please use version overlay_support: 1.0.5-hotfix1
  2. wrap your AppWidget with OverlaySupport

  return OverlaySupport.global(child: MaterialApp());
  1. show toast or simple notifications
import 'package:overlay_support/overlay_support.dart';

void onClick() {
    // popup a toast.
    toast('Hello world!');

    // show a notification at top of screen.
    showSimpleNotification(
        Text("this is a message from simple notification"),
        background: Colors.green);
}

more instructions check here : example/README.md

License

see License File

End

if you have some suggestion or advice, please open an issue to let me known. This will greatly help the improvement of the usability of this project. Thanks.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package