anchor_toast 0.0.1 copy "anchor_toast: ^0.0.1" to clipboard
anchor_toast: ^0.0.1 copied to clipboard

A Flutter package for displaying contextual toasts anchored to widgets with smart positioning and smooth animations.

Changelog #

0.0.1 #

Initial Release #

  • AnchorToast Widget: Wrap any anchor widget to enable toast functionality
  • AnchorToastController: Complete controller for managing toast display and dismissal
  • Smart Positioning: Automatically determines optimal position (above/below) based on available screen space
  • Smooth Animations: Beautiful scale and opacity animations with optimized timing
  • Auto-dismiss: Configurable duration for automatic toast dismissal
  • Manual Dismiss: dismiss() method for manual toast control
  • Overlay Integration: Uses Flutter's Overlay system for proper z-index handling
  • Customizable Offset: Adjustable spacing between anchor and toast
  • Memory Management: Proper disposal of resources and animation controllers

Features #

  • Smart positioning above/below anchor based on available space
  • Scale and opacity animations with smooth curves
  • Auto-dismiss with configurable duration
  • Manual dismiss capability
  • Clean and simple API with AnchorToast widget and controller
  • Proper memory management and cleanup
  • Comprehensive test coverage
  • Example app with various use cases
  • Full documentation and API reference
2
likes
0
points
73
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for displaying contextual toasts anchored to widgets with smart positioning and smooth animations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on anchor_toast