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