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.
- FToastAlignment
- The toast's alignment.
- FToaster
- An opinionated toast widget.
- FToasterMotion
- The motion-related properties for FToaster that affect all toasts.
- FToasterMotionDelta
- A delta that applies modifications to a FToasterMotion.
- FToasterState
- A FToaster's state.
- FToasterStyle
- FToaster's style.
- FToasterStyleDelta
- A delta that applies modifications to a FToasterStyle.
- FToastMotion
- The motion-related properties for FToaster that affect individual toasts.
- FToastMotionDelta
- A delta that applies modifications to a FToastMotion.
- FToastStyle
- The toast's style.
- FToastStyleDelta
- A delta that applies modifications to a FToastStyle.
Enums
- 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, FToastStyleDelta style = const .context(), Widget? icon, Widget? description, Widget suffixBuilder(BuildContext context, FToasterEntry entry)?, FToastAlignment? alignment, List< AxisDirection> ? swipeToDismiss, double dismissThreshold = 0.5, 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), FToastStyleDelta style = const .context(), FToastAlignment? alignment, List< AxisDirection> ? swipeToDismiss, double dismissThreshold = 0.5, Duration? duration = const Duration(seconds: 5), VoidCallback? onDismiss}) → FToasterEntry - Displays a raw toast in a toaster.