flutter_sliding_toast 1.8.0
flutter_sliding_toast: ^1.8.0 copied to clipboard
A flutter package for displaying messages with custom styling and animation behavior.
1.8.0 #
- Added
ToastDisplayMode.stackedto show toasts like notifications: every toast shows right away, the first one in front and the later ones at the same alignment peeking out behind it. Only the toast in front counts down, the next one coming forward when it closes, and tapping the toasts behind spreads the stack out, pausing every toast until it's collapsed by tapping outside. The toast in front shows a badge with the number of toasts behind it. - In
ToastDisplayMode.oneByOne, the toast on screen shows a badge with the number of toasts waiting behind it, readable on any badge color. Turn it off withshowPendingCountinSlidingToastSetting/PopupToastSetting, style it withpendingCountColor/pendingCountTextColorinToastStyle, or listen toInteractiveToast.pendingCountto build your own indicator.
1.7.0 #
- Added
ToastDisplayModeto show toasts all at once (allAtOnce, the default and the previous behavior) or one by one (oneByOne), where a new toast waits in a queue until the one on screen is closed. Set it for every toast withInteractiveToast.setDisplayMode, or per toast with thedisplayModeparameter ofslide/pop. - Added
showDialogOnTaptoSlidingToastSettingandPopupToastSettingto show the whole toast content in a dialog styled like the toast when it's tapped, scrollable if the message is long. The toast is paused while the dialog is open. Customize the dialog withdialogSetting(ToastDialogSetting), and passdialogTitletoslide/popto show a different (e.g. untruncated) title in the dialog. closeAllToastalso drops the toasts waiting in the queue.- Fixed
closeToastleaving the toast on screen when called before its first frame was built.
1.6.0 #
- Migrated from
package:flutter/material.dartto the standalonematerial_uipackage (Material and Cupertino were split out of the Flutter SDK in Flutter 3.47). Only the files that actually needTheme/Material/Colors/Iconsnow depend onmaterial_ui; everything else usespackage:flutter/widgets.dart. Requires Flutter 3.47 or newer. - Fixed a bug where a toast with
glassBlurset was always fully transparent, sincebackgroundColorOpacitywas multiplied by.255instead of255when computing the background alpha. - Fixed
PopupToastSetting's defaultanimationDuration, which wasDuration(microseconds: 500)instead ofDuration(milliseconds: 500), making the fade/scale-in animation imperceptible. - Fixed
slideError/popError'sdisableMultiTappingparameter, which was previously accepted but never applied. - Added test coverage for the settings/style models, the toast widgets, and
InteractiveToast.
1.5.3 #
- Bumped Dart SDK version and updated the lint rules.
1.5.2 #
- Added cross axis alignment for the leading, title, and trailing widgets which are aligned in a row.
1.5.1 #
- Fixed an issue where the toast container's maxHeight and maxWidth constraints were not being applied correctly.
1.5.0 #
- Either use context or provide an existing overlay state
- Initialize context or overlay state early for persistent toast availability
- Updated sdk version and depreciated methods
1.4.3 #
- Gradient color and decoration image added inside toast container
1.4.2 #
- Overflow inside toast container bug is solved
1.4.1 #
- Make the title width dynamic, by disabling progress bar and making 'expandedTitle' to false in toast style
- Enabling progress bar will make title expanded even if 'expandedTitle' is true
1.4.0 #
- Show popup toast with title, leading, and trailing widget
- Enable or disable fading and scaling effect or modify their behavior
- bug fixes
1.3.0 #
- Add Leading widget
- Add spacing between leading and title or title and trailing
- Close an individual or all displayed toasts programmatically
1.2.0 #
- Execute functions when the toast is tapped or disposed
- Disable multiple tapping to execute callback only one time
- Screenshots updated
1.1.1 #
- Screenshots updated
1.1.0 #
- Glassmorphism design
- Pause the animation with long press and release it to continue
- Clipping the progressbar with border radius
1.0.2 #
- padding inside toast message
- list of box shadow for toast message
- toast message minimum/maximum height and width changed
1.0.1 #
- changed dart sdk version
- readme updated
1.0.0 #
- initial release
