cherry_toast_msgs 1.2.1
cherry_toast_msgs: ^1.2.1 copied to clipboard
A beautiful, responsive toast notification package for Flutter with animated overlays and customizable themes.
Changelog #
1.2.1 2024-12-XX #
- Fix Default Position for Error Toast in Example
1.2.0 2024-12-XX #
Added #
- Dynamic Positioning System: New
ToastPositionenum with four positioning options:top,bottom,center, andcustom - Flexible Position Control: All toast methods now accept
position,topOffset, andbottomOffsetparameters - Smart Animation Direction: Toast animations now adapt based on position (slides from top for top position, from bottom for bottom position)
- Custom Offset Support: Fine-tune positioning with
topOffsetandbottomOffsetparameters for precise control - Responsive Positioning: All position calculations are now based on screen dimensions for better device adaptation
Changed #
- Enhanced API: All toast methods (
showErrorToast,showInfoToast,showWarningToast,showSuccessToast) now support dynamic positioning - Improved Animation Logic: Slide animations now consider the toast position for more natural movement
- Better Default Positioning: Default positions are now calculated proportionally to screen dimensions
Technical Improvements #
- Position-Aware Animations: Different slide directions based on toast position for better UX
- Screen-Size Responsive: All positioning calculations use screen dimensions for consistent behavior
- Flexible Positioning: Support for custom offsets while maintaining responsive defaults
Usage Examples #
// Top position (default)
CherryToastMsgs.showSuccessToast(
context: context,
title: "Success",
description: "Operation completed",
position: ToastPosition.top,
);
// Bottom position
CherryToastMsgs.showErrorToast(
context,
"Error",
"Something went wrong",
position: ToastPosition.bottom,
);
// Center position
CherryToastMsgs.showInfoToast(
context,
"Info",
"Important information",
position: ToastPosition.center,
);
// Custom position with offset
CherryToastMsgs.showWarningToast(
context,
"Warning",
"Please be careful",
position: ToastPosition.custom,
topOffset: 100.0,
);
1.1.0 2024-12-XX #
Added #
- Enhanced Dynamic Sizing: All widgets now have fully dynamic height and width that adapt to screen dimensions
- Improved Responsiveness: Better adaptation to different device sizes (mobile, tablet, desktop)
- Dynamic Typography: Font sizes now scale proportionally with screen dimensions
- Flexible Layout Parameters: All hardcoded values replaced with dynamic calculations based on screen size
- Better Device Adaptation: Improved positioning and sizing for various screen orientations
Changed #
- Toast Methods: All toast methods (
showErrorToast,showInfoToast,showWarningToast,showSuccessToast) now accept optionalwidthandheightparameters - Dynamic Default Values: Border radius, border width, elevation, icon sizes, and spacing now calculated dynamically
- Responsive Positioning: Toast positioning now uses screen height for better vertical placement
- Improved Shadow Effects: Shadow offset now scales with elevation for better visual consistency
Technical Improvements #
- Screen Size Awareness: All dimensions now calculated using both screen width and height
- Proportional Scaling: Icons, text, padding, and spacing scale proportionally with screen size
- Better Performance: Simplified widget structure with single IntrinsicHeight implementation
- Enhanced Customization: More granular control over all visual elements
Fixed #
- Layout Consistency: Eliminated duplicate code paths for different height scenarios
- Responsive Issues: Fixed layout problems on very small or very large screens
- Visual Scaling: Improved visual consistency across different device sizes
1.0.6 2024-01-XX #
Added #
- Added support for custom toast width and height via
widthandheightparameters inshowAnimatedToastand static info containers - New
StaticeInfoContainerWidgetfor displaying static information with customizable styles and sizes - Expanded API documentation and usage examples in README
- Improved customization options for icons, colors, border radius, and elevation
Changed #
- Default toast sizing now adapts responsively to screen size unless custom dimensions are provided
- Updated default styles for better accessibility and contrast
Fixed #
- Fixed minor layout issues with long titles and descriptions
- Improved close button hit area for better usability
1.0.5 2024-01-XX #
Added #
- Improved toast animation performance for smoother transitions
- Enhanced accessibility: better screen reader support and focus handling
- Updated documentation and usage examples in README
Fixed #
- Resolved minor layout issues on small screens
- Fixed bug where multiple toasts could overlap unexpectedly
- Improved responsiveness for landscape and tablet devices
1.0.4 2024-01-XX #
Added #
- Implemented .pubignore for better publishing control
- Updated image names to be more descriptive and meaningful
- Improved package structure with proper file organization
Fixed #
- Fixed image paths in README to use relative paths for private repositories
- Resolved publishing issues with .gitignore vs .pubignore separation
- Updated dependencies and improved package validation
1.0.3 2024-01-XX #
Added #
- Implemented .pubignore for better publishing control
- Updated image names to be more descriptive and meaningful
- Improved package structure with proper file organization
Fixed #
- Fixed image paths in README to use relative paths for private repositories
- Resolved publishing issues with .gitignore vs .pubignore separation
- Updated dependencies and improved package validation
1.0.2 2024-01-XX #
Fixed #
- Fixed image URLs in README to use GitHub raw URLs
- Images now display properly on GitHub and pub.dev
- Resolved issue with local image paths not working
1.0.1 2024-01-XX #
Added #
- Added comprehensive screenshots and images to README
- Visual demonstrations of all toast types and features
- Better package presentation on pub.dev
Fixed #
- Resolved overflow issues in toast layouts
- Improved text handling with ellipsis for long content
- Better responsive design for fixed height containers
1.0.0 2024-01-XX #
Added #
- Initial release of Cherry Toast Messages package
- Beautiful animated toast notifications with smooth transitions
- Four pre-built toast themes: Success, Error, Warning, and Info
- Fully customizable toast styling with colors, fonts, and animations
- Responsive design that adapts to different screen sizes automatically
- Static info container widget for displaying information
- Support for custom icons, colors, and styling
- Custom width and height parameters for both toasts and static containers
- Proper documentation and examples
Features #
CherryToastMsgs.showSuccessToast()- Green success toastsCherryToastMsgs.showErrorToast()- Red error toastsCherryToastMsgs.showWarningToast()- Yellow warning toastsCherryToastMsgs.showInfoToast()- Blue info toastsCherryToastMsgs.showAnimatedToast()- Custom toasts with full control including size customizationStaticeInfoContainerWidget- Static information containers with size customization
Technical Details #
- Built with Flutter 3.0+ support
- Responsive design using MediaQuery for automatic screen adaptation
- Smooth animations with SlideTransition and FadeTransition
- Overlay-based implementation for non-intrusive toasts
- Customizable duration, elevation, and styling
- Customizable width and height for precise control over toast and container sizes
- Proper memory management with automatic cleanup
- Simplified API - no need to pass Deviceinfo objects
