widgets/toast library
An opinionated toast that temporarily displays a succinct message.
See https://forui.dev/docs/overlay/toast for working examples.
Classes
- FToast
- A toast.
- FToaster
- An opinionated toast widget.
- FToasterMotion
- The motion-related properties for FToaster that affect all toasts.
- FToasterState
- A FToaster's state.
- FToasterStyle
- FToaster's style.
- FToastMotion
- The motion-related properties for FToaster that affect individual toasts.
- FToastStyle
- The toast's style.
Enums
- FToastAlignment
- The toast's alignment.
- FToasterExpandBehavior
- A toaster's expansion behavior.
Mixins
- FToasterEntry
- An entry in a toaster.
Extensions
- $FToasterMotionTransformations on FToasterMotion
- Provides copyWith and lerp methods.
- $FToasterStyleTransformations on FToasterStyle
- Provides copyWith and lerp methods.
- $FToastMotionTransformations on FToastMotion
- Provides copyWith and lerp methods.
- $FToastStyleTransformations on FToastStyle
- Provides copyWith and lerp methods.
Functions
-
showFToast(
{required BuildContext context, required Widget title, FToastStyle style(FToastStyle style)?, Widget? icon, Widget? description, Widget suffixBuilder(BuildContext context, FToasterEntry entry)?, FToastAlignment? alignment, List< AxisDirection> ? swipeToDismiss, Duration? duration = const Duration(seconds: 5), VoidCallback? onDismiss}) → FToasterEntry - Displays a FToast in a toaster.
-
showRawFToast(
{required BuildContext context, required Widget builder(BuildContext context, FToasterEntry entry), FToastStyle style(FToastStyle style)?, FToastAlignment? alignment, List< AxisDirection> ? swipeToDismiss, Duration? duration = const Duration(seconds: 5), VoidCallback? onDismiss}) → FToasterEntry - Displays a raw toast in a toaster.