butter_toast 0.1.0 copy "butter_toast: ^0.1.0" to clipboard
butter_toast: ^0.1.0 copied to clipboard

Smooth, buttery toasts for Flutter: pill and Sonner-style card toasts, 7 positions with their own motion, promise toasts, swipe to dismiss, no context needed.

0.1.0 #

  • 🎉 Initial release.
  • ButterToast.show, success, error, warning, info and loading, callable from anywhere once ButterToast.init() is added to the app.
  • Two styles: a compact pill and a Sonner-style card that stacks and spreads out on tap or hover.
  • Seven positions, each with its own motion: top and bottom slide from their edge, corners slide in from the side, centre scales in.
  • Spring animations, swipe to dismiss in any direction (even a toast in the middle of a spread-out stack), and smooth morphing when a toast updates.
  • A spread-out stack pauses its timers and closes again on a tap outside or after 5 seconds without a touch.
  • Repeated identical toasts merge; a tag updates a toast in place.
  • ButterToastAppIcon shows the app's launcher icon, read at run time (on the web, from the web app manifest); icon, typeIcons and showIcon control toast icons.
  • ButterToast.promise turns one toast from loading into success or error.
  • Height budget with "Show more" for long text; keeps clear of the safe area and the keyboard, and shows above dialogs and bottom sheets.
  • ButterToastTheme as a ThemeExtension, a theme: parameter to style a single toast, and ButterToast.custom for fully custom toasts.
0
likes
160
points
--
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Smooth, buttery toasts for Flutter: pill and Sonner-style card toasts, 7 positions with their own motion, promise toasts, swipe to dismiss, no context needed.

Repository (GitHub)
View/report issues

Topics

#toast #notification #snackbar #animation #ui

License

MIT (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on butter_toast

Packages that implement butter_toast