Package selection guidance compiled from public package information, community data, and project usage.
BotToast is a simple and feature-rich Flutter toast library designed for easy integration and customization. It provides a clean, intuitive API to display toast messages across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. With support for various toast types, animations, and positioning options, it enhances user feedback in apps without complexity. The library is lightweight and developer-friendly, making it ideal for quick notifications and status updates.
Use cases
Displaying brief user feedback
Showing success or error messages
Enhancing UI with subtle notifications
Providing real-time status updates
Customizing toast appearance and behavior
Key features
Easy-to-use API
Multiple toast types
Cross-platform support
Customizable animations
Flexible positioning
Support for global configuration
Suitable for
Simple notification needs
Apps requiring lightweight toasts
Developers seeking quick implementation
Projects targeting multiple platforms
UIs needing consistent feedback
Considerations
Limited to basic toast functionality
May require additional styling for complex designs
Not suitable for persistent notifications
Depends on external dependency management
No built-in localization support
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
//custom apivar cancel = BotToast.showCustomNotification(...)
var cancel = BotToast.showCustomText(...)
var cancel = BotToast.showCustomLoading(...)
var cancel = BotToast.showAnimationWidget(...)
...
cancel(); //close
5. Modify Global Configuration
/// For example: Globally change the animation duration for standard notifications to 1 second.BotToast.defaultOption.notification.animationDuration = constDuration(seconds: 1);
/// For more default options, refer to the following configurations:/// [BotToast.defaultOption.simpleNotification] corresponds to the default values of [showSimpleNotification]./// [BotToast.defaultOption.notification] corresponds to the default values of [showNotification]./// [BotToast.defaultOption.customNotification] corresponds to the default values of [showCustomNotification]./// [BotToast.defaultOption.text] corresponds to the default values of [showText]./// [BotToast.defaultOption.customText] corresponds to the default values of [showCustomText]./// [BotToast.defaultOption.loading] corresponds to the default values of [showLoading]./// [BotToast.defaultOption.customLoading] corresponds to the default values of [showCustomLoading]./// [BotToast.defaultOption.attached] corresponds to the default values of [showAttachedWidget]./// [BotToast.defaultOption.animation] corresponds to the default values of [showAnimationWidget]./// [BotToast.defaultOption.enhanced] corresponds to the default values of [showEnhancedWidget].
3.0 version
Major changes:
Reimplemented the underlying initialization logic, the code is simpler and more general, and no longer depends on Navigator