flutter_styled_toast
library
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.