overlay_support 2.1.0 copy "overlay_support: ^2.1.0" to clipboard
overlay_support: ^2.1.0 copied to clipboard

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

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
    
    copied to clipboard
    • 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());
copied to clipboard
  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);
}
copied to clipboard

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.

683
likes
140
points
93.2k
downloads

Publisher

verified publishersoit.tech

Weekly Downloads

2024.09.14 - 2025.03.29

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

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

async, flutter

More

Packages that depend on overlay_support