modern_toast 0.0.3 copy "modern_toast: ^0.0.3" to clipboard
modern_toast: ^0.0.3 copied to clipboard

A beautiful, modern, and customizable toast notification package for Flutter with smooth animations and multiple toast types.

0.0.3 - 2025-10-18 #

Added #

  • borderRadius parameter to showModernToast for customizing toast corner radius (default: 25.0)
  • Example demonstrating custom border radius in the example app

Changed #

  • Updated API documentation to include the new borderRadius parameter

0.0.2 - 2025-10-18 #

Added #

  • textStyle parameter to showModernToast for custom text styling
  • showIcon boolean parameter to hide/show icons (default: true)
  • Refactored code into smaller files following single responsibility principle:
    • modern_toast_types.dart - Contains enums and color constants
    • modern_toast_functions.dart - Contains the main toast functions
    • top_toast.dart - Contains the TopToast widget

Removed #

  • flutter_screenutil dependency - package now works without additional setup
  • Replaced responsive sizing with fixed pixel values

Changed #

  • Updated example app to demonstrate new features
  • Improved code organization and maintainability

0.0.1 - 2025-10-18 #

Added #

  • Initial release of Modern Toast package
  • Four predefined toast types: Success, Error, Warning, and Info
  • Custom toast function with customizable colors and icons
  • Smooth zoom-in and slide-down animations using animate_do
  • Responsive design using flutter_screenutil
  • Auto-dismiss functionality with customizable duration
  • Smart debouncing to prevent multiple toasts from showing at once
  • Automatic width adjustment based on message content
  • Support for up to 3 lines of text with ellipsis overflow
  • Beautiful shadow effects and rounded corners
  • SafeArea support for proper display on all devices

Features #

  • showModernToast() - Display predefined toast types
  • showModernToast() - Display toasts with predefined types or custom styling
  • ModernToastType enum - Success, Error, Warning, Info
  • ModernToastColors class - Default color palette
5
likes
0
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

A beautiful, modern, and customizable toast notification package for Flutter with smooth animations and multiple toast types.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

animate_do, flutter

More

Packages that depend on modern_toast