jiang111 / notify_inapp

show custom in-app notification with any Widgets in flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notify_inapp

show custom in-app notification with any Widgets.

Getting Started

Add this to your package's pubspec.yaml file:

dependencies:
  notify_inapp: ^0.0.3

Usage

Then you just have to import the package with

import 'package:notify_inapp/notify_inapp.dart';

Show a notifcation

Notify notify = Notify();
notify.show(
  context,
  child,
);

Dismiss a notifcation

notify.dismiss();

Show Method Public Params Summary

Param Description Default Value
duration animation duration 300
keepDuration notifcation shown time 3000
topOffset Height from screen top 40
dismissDirectly not show animation when closing notification false
disableDrag disable Drag down false

Warning

notifcation will never dismiss automatically when keepDuration is zero

About

show custom in-app notification with any Widgets in flutter

License:Apache License 2.0


Languages

Language:C++ 37.2%Language:CMake 32.3%Language:Dart 20.7%Language:HTML 3.2%Language:C 2.5%Language:Swift 2.1%Language:Objective-C 1.4%Language:Java 0.3%Language:Kotlin 0.2%