oktoast library

Classes

BaseAnimationBuilder
Miui10AnimBuilder
OffsetAnimationBuilder
OKToast
OpacityAnimationBuilder
ToastFuture
use the dismiss to dismiss toast.
ToastPosition

Functions

dismissAllToast({bool showAnim: false}) → void
use the method to dismiss all toast.
showToast(String msg, {BuildContext context, Duration duration, ToastPosition position, TextStyle textStyle, EdgeInsetsGeometry textPadding, Color backgroundColor, double radius, VoidCallback onDismiss, TextDirection textDirection, bool dismissOtherToast, TextAlign textAlign, OKToastAnimationBuilder animationBuilder, Duration animationDuration, Curve animationCurve}) ToastFuture
show toast with msg,
showToastWidget(Widget widget, {BuildContext context, Duration duration, ToastPosition position, VoidCallback onDismiss, bool dismissOtherToast, TextDirection textDirection, bool handleTouch, OKToastAnimationBuilder animationBuilder, Duration animationDuration, Curve animationCurve}) ToastFuture
show widget with oktoast

Typedefs

OKToastAnimationBuilder(BuildContext context, Widget child, AnimationController controller, double percent) Widget