flutter_styled_toast library

Classes

CustomSizeTransition
Animates its own size and clips and aligns its child.
StyledToast
Toast configuration widget, which we use to save the overall configuration for toast widget in.
StyledToastPosition
Toast position.
StyledToastTheme
Toast theme, only for default content widget.
ToastFuture
The class for managing the overlay and dismiss.
ToastManager
Toast manager, manage toast list.

Enums

StyledToastAnimation
Toast animation.
StyledToastShowType
Toast showing type.

Functions

dismissAllToast({bool showAnim = false}) → void
The method to dismiss all toast.
getAnimation<T>(T start, T end, AnimationController controller, {Curve curve = Curves.linearToEaseOut}) Animation<T>
Get the animation simply.
showToast(String? msg, {BuildContext? context, Duration? duration, Duration? animDuration, StyledToastPosition? position, TextStyle? textStyle, EdgeInsetsGeometry? textPadding, double toastHorizontalMargin = _defaultHorizontalMargin, Color? backgroundColor, BorderRadius? borderRadius, ShapeBorder? shapeBorder, VoidCallback? onDismiss, TextDirection? textDirection, bool? dismissOtherToast, StyledToastAnimation? animation, StyledToastAnimation? reverseAnimation, Alignment? alignment, Axis? axis, Offset? startOffset, Offset? endOffset, Offset? reverseStartOffset, Offset? reverseEndOffset, TextAlign? textAlign, Curve? curve, Curve? reverseCurve, bool? fullWidth, bool? isHideKeyboard, CustomAnimationBuilder? animationBuilder, CustomAnimationBuilder? reverseAnimBuilder, bool? isIgnoring, OnInitStateCallback? onInitState}) ToastFuture
Show normal toast with style and animation.
showToastWidget(Widget widget, {BuildContext? context, Duration? duration, Duration? animDuration, VoidCallback? onDismiss, bool? dismissOtherToast, TextDirection? textDirection, Alignment? alignment, Axis? axis, Offset? startOffset, Offset? endOffset, Offset? reverseStartOffset, Offset? reverseEndOffset, StyledToastPosition? position, StyledToastAnimation? animation, StyledToastAnimation? reverseAnimation, Curve? curve, Curve? reverseCurve, bool? isHideKeyboard, CustomAnimationBuilder? animationBuilder, CustomAnimationBuilder? reverseAnimBuilder, bool? isIgnoring, OnInitStateCallback? onInitState}) ToastFuture
Show custom content widget for toasting.

Typedefs

CustomAnimationBuilder = Widget Function(BuildContext context, AnimationController controller, Duration duration, Widget child)
Builder method for custom animation.