flash library

Classes

DefaultFlashController<T>
Flash<T>
A highly customizable widget so you can notify your user when you fell like he needs a beautiful explanation.
FlashBar<T>
FlashBarTheme
FlashController<T>
FlashToastTheme
ModalFlashRoute<T>

Enums

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

Functions

showFlash<T>({required BuildContext context, required FlashBuilder<T> builder, Duration transitionDuration = const Duration(milliseconds: 250), Duration reverseTransitionDuration = const Duration(milliseconds: 200), Color? barrierColor, double? barrierBlur, bool barrierDismissible = false, FutureOr<bool> onBarrierTap()?, Curve barrierCurve = Curves.ease, Duration? duration, bool persistent = true, VoidCallback? onRemoveFromRoute}) Future<T?>
showModalFlash<T>({required BuildContext context, required FlashBuilder<T> builder, Color? barrierColor = const Color(0x8A000000), double? barrierBlur, bool barrierDismissible = true, Curve barrierCurve = Curves.ease, String? barrierLabel, Duration transitionDuration = const Duration(milliseconds: 250), Duration reverseTransitionDuration = const Duration(milliseconds: 200), RouteSettings? settings, bool useRootNavigator = false, Duration? duration}) Future<T?>

Typedefs

FlashBuilder<T> = Widget Function(BuildContext context, FlashController<T> controller)