floating_snackbar library
Customizable floating snackbars/toasts for Flutter.
Two entry points:
- floatingSnackBar - the original one-line function (backward compatible).
- FloatingSnackBar - the rich API with variants, positioning, theming, actions, progress, and context-free (overlay) display.
Classes
- FloatingSnackBar
- The entry point for the rich floating snackbar API.
- FloatingSnackBarAction
- A tappable action rendered on the trailing edge of a floating snackbar.
- FloatingSnackBarTheme
- Global, app-wide defaults for floating snackbars.
- FloatingSnackBarWidget
- The visual card for a floating snackbar.
Enums
- FloatingSnackBarAnimation
- The entrance/exit animation used when a floating snackbar appears.
- FloatingSnackBarPosition
- Where a floating snackbar is anchored on the screen.
- FloatingSnackBarType
- The semantic style of a floating snackbar.
Functions
-
floatingSnackBar(
{required String message, required BuildContext context, Duration? duration, TextStyle? textStyle, Color? textColor, Color? backgroundColor}) → void - Displays a minimal floating snackbar using ScaffoldMessenger.