widgets/toast library Widgets

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.
FToasterState
A FToaster's state.
FToasterStyle
FToaster's style.
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

$FToasterStyleCopyWith on FToasterStyle
Provides a copyWith method.
$FToastStyleCopyWith on FToastStyle
Provides a copyWith method.

Functions

showFToast({required BuildContext context, required Widget title, FToastStyle style(FToastStyle)?, Widget? icon, Widget? description, ValueWidgetBuilder<FToasterEntry>? suffixBuilder, 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)?, FToastAlignment? alignment, List<AxisDirection>? swipeToDismiss, Duration? duration = const Duration(seconds: 5), VoidCallback? onDismiss}) FToasterEntry
Displays a raw toast in a toaster.