oktoast library

Functions

dismissAllToast({bool showAnim = false}) → void
showToast(String msg, {BuildContext? context, BuildContextPredicate buildContextPredicate = _defaultContextPredicate, Duration? duration, ToastPosition? position, Color? backgroundColor, double? radius, VoidCallback? onDismiss, bool? dismissOtherToast, OKToastAnimationBuilder? animationBuilder, Duration? animationDuration, Curve? animationCurve, BoxConstraints? constraints, EdgeInsetsGeometry? margin = const EdgeInsets.all(50), TextDirection? textDirection, EdgeInsetsGeometry? textPadding, TextAlign? textAlign, TextStyle? textStyle, int? textMaxLines, TextOverflow? textOverflow}) ToastFuture
Show toast with msg,
showToastWidget(Widget widget, {BuildContext? context, BuildContextPredicate buildContextPredicate = _defaultContextPredicate, Duration? duration, ToastPosition? position, VoidCallback? onDismiss, bool? dismissOtherToast, TextDirection? textDirection, bool? handleTouch, OKToastAnimationBuilder? animationBuilder, Duration? animationDuration, Curve? animationCurve}) ToastFuture
Show a widget and returns a ToastFuture.

Typedefs

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