hoanglm4 / overlay_support

a flutter toast and notification library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

overlay_support

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
  • Current latest_version is Pub
  1. wrap your AppWidget with OverlaySupport
  return OverlaySupport(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.

About

a flutter toast and notification library

License:Apache License 2.0


Languages

Language:Dart 84.3%Language:Swift 4.5%Language:C++ 4.5%Language:Batchfile 4.3%Language:Objective-C 1.4%Language:Kotlin 0.6%Language:HTML 0.3%