voo_toast 0.0.6 copy "voo_toast: ^0.0.6" to clipboard
voo_toast: ^0.0.6 copied to clipboard

A super developer-friendly toast notification package for Flutter with global access, extensive customizations, and responsive platform-specific defaults.

0.0.6 #

  • FEAT: add example modules and run configurations for VooFlutter packages.

0.0.5 #

  • FEAT: Introduce voo_tokens package for design tokens and responsive utilities.
  • FEAT: Enhance dropdown fields with native subtitle support; update version to 0.3.44.
  • FEAT: Enhance VooToast with theme-aware configurations and styling options.
  • FEAT: Enhance FutureToast feature with improved loading indicators, error handling, and dynamic messages; update CHANGELOG and version to 0.0.3.
  • FEAT: Update CHANGELOG and bump version to 0.0.2 with new FutureToast feature and improvements.
  • FEAT: Implement future toast functionality with loading indicators and error handling.
  • FEAT: Add VooToast package with customizable toast notifications.

0.0.4 - 2024-01-10 #

Added #

  • Theme Integration: Toast now automatically uses Theme.of(context) colors by default
    • New ToastConfig.fromTheme(context) factory constructor for theme-aware configuration
    • Toast colors automatically adapt to Material 3 color scheme (primary, error, tertiary, secondary)
    • Text colors properly contrast with backgrounds using theme's onPrimary, onError, etc.
    • Text styles default to theme's textTheme.bodyMedium and titleSmall
    • Card elevation follows theme's cardTheme.elevation

Changed #

  • Improved Singleton Pattern: VooToastController now implements proper singleton pattern
    • Factory constructor ensures single instance
    • New reset() method for testing and cleanup
    • Better initialization with theme-aware defaults
  • Enhanced Theme Support: Removed hardcoded colors in favor of theme consistency
    • Success toasts use colorScheme.primary
    • Error toasts use colorScheme.error
    • Warning toasts use colorScheme.tertiary
    • Info toasts use colorScheme.secondary
    • Custom toasts use colorScheme.surfaceContainer
  • Toast entity now supports textStyle and titleStyle properties

Fixed #

  • Fixed singleton initialization issues with proper factory constructor
  • Improved memory management with proper disposal

0.0.3 - 2024-01-10 #

Added #

  • FutureToast feature: New showFutureToast method that accepts a Future and displays loading/success/error toasts
    • Shows loading toast while Future is executing
    • Optionally shows success toast on completion with access to result data
    • Shows error toast on failure with access to error object
    • Returns the Future's result
    • Success/error message callbacks receive the actual result/error for dynamic messages
    • All parameters are optional with sensible defaults (follows KISS principle)
  • Loading indicator support in toast cards with new isLoading property
  • VooLoadingIndicator atom component for displaying loading state
  • Multiple example implementations showing Future toast with success and error cases

Fixed #

  • Fixed production error where dismissing non-existent toasts would throw an exception
    • dismiss method now fails silently when toast ID not found
    • Prevents race conditions when timers try to dismiss already-dismissed toasts

Changed #

  • Updated Toast entity to support loading state
  • Enhanced VooToastCard to display loading indicators
  • Updated repository implementation for more robust toast dismissal

0.0.2 - 2024-01-09 #

Added #

  • Initial published version with complete toast functionality
  • Platform-aware positioning system
  • Rich customization options
  • Queue management
  • Multiple animation types

0.0.1 - 2024-01-09 #

Added #

  • Initial release of VooToast package
  • Global toast notification system with VooToast singleton
  • Clean architecture implementation with Domain, Data, and Presentation layers
  • Atomic design pattern for UI components
  • Multiple toast types: success, error, warning, info, and custom
  • Rich customization options:
    • Custom colors, icons, and styling
    • Configurable duration and animations
    • Action buttons for interactive toasts
    • Custom content support
  • Platform-aware positioning:
    • Mobile: Bottom position by default
    • Tablet/Web: Top-right position by default
    • Automatic responsive adjustments based on screen size
  • Smart queue management with configurable max toasts
  • Multiple animation types:
    • Fade in/out
    • Slide from top/bottom/left/right
    • Scale animation
    • Bounce effect
    • Rotation animation
  • Toast features:
    • Titles and messages
    • Progress bars for timed toasts
    • Dismissible toasts with swipe/tap
    • Priority-based ordering
    • Duplicate prevention option
  • VooToastOverlay widget for app-wide integration
  • ToastConfig for global configuration
  • Comprehensive example application
  • Full documentation with CLAUDE.md
  • MIT License

Dependencies #

  • flutter SDK
  • equatable: ^2.0.5
  • flutter_hooks: ^0.20.5
  • collection: ^1.18.0
  • rxdart: ^0.28.0
1
likes
130
points
518
downloads

Publisher

verified publishervoostack.com

Weekly Downloads

A super developer-friendly toast notification package for Flutter with global access, extensive customizations, and responsive platform-specific defaults.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #toast #notifications

Documentation

API reference

License

MIT (license)

Dependencies

collection, equatable, flutter, flutter_hooks, rxdart, voo_ui_core

More

Packages that depend on voo_toast