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

ParamDescriptionDefault Value
durationanimation duration300
keepDurationnotifcation shown time3000
topOffsetHeight from screen top40
dismissDirectlynot show animation when closing notificationfalse
disableDragdisable Drag downfalse

Warning

notifcation will never dismiss automatically when keepDuration is zero

Libraries

notify_inapp