flash library

Classes

Flash<T>
A highly customizable widget so you can notify your user when you fell like he needs a beautiful explanation.
FlashBar
FlashBarThemeData
Defines the configuration of the overall visual FlashTheme bar.
FlashBlockDialogThemeData
Defines the configuration of the overall visual FlashTheme dialog.
FlashController<T>
FlashDialogThemeData
Defines the configuration of the overall visual FlashTheme dialog.
FlashTheme
Applies a theme to descendant flash widgets.
Toast
A widget provide the function of emit message.

Enums

FlashBarType
Flash bar type.
FlashBehavior
Indicates if flash will be attached to the edge of the screen or not.
FlashPosition
Indicates if flash is going to start at the top or at the bottom.
HorizontalDismissDirection
The direction in which a HorizontalDismissDirection can be dismissed.

Extensions

FlashBarShortcuts on BuildContext
Context extension for flash bar.
FlashDialogShortcuts on BuildContext
Context extension for flash dialog.
ToastShortcuts on BuildContext
Context extension for flash toast.

Functions

showFlash<T>({required BuildContext context, required FlashBuilder<T> builder, Duration? duration, Duration transitionDuration = const Duration(milliseconds: 500), bool persistent = true, WillPopCallback? onWillPop}) Future<T?>
wrapWithOverlay({required WidgetBuilder builder, Clip clipBehavior = Clip.hardEdge}) Widget
Wrap a widget with Overlay.

Typedefs

FlashBuilder<T> = Widget Function(BuildContext context, FlashController<T> controller)
FlashCallback<T> = void Function(BuildContext context, FlashController<T> controller, StateSetter setState)
Signature of callbacks that have arguments of flash and return no data.
FlashWidgetBuilder<T> = Widget Function(BuildContext context, FlashController<T> controller, StateSetter setState)
A builder that creates a widget given the controller and setState.