flutter_toast_pro 4.1.2
flutter_toast_pro: ^4.1.2 copied to clipboard
Overlay-based toast/loading/progress helper for Flutter apps.
4.1.2 #
- Fix
setState() called when widget tree was lockedwhen a toast is dismissed (e.g.hideLoading()) from another widget'sdisposeor during build/layout: overlay and scope updates are deferred to the end of the frame.
4.1.1 #
- update
material_uiversion to ^1.6.0 - update
cupertino_uiversion to ^1.1.2
4.1.0 #
- update
material_uiversion to ^1.4.0 - update
cupertino_uiversion to ^1.1.1 - SDK Constraints: Bumped minimum Flutter SDK requirement to
>=3.47.0and Bumped minimum Dart SDK requirement to>=3.13.0
4.0.2 #
- Ship AI agent skills (
flutter-toast-pro-setup,flutter-toast-pro-toasts) fordart run skills@ get. - Rewrite the English README to match the current public API.
- Add Chinese documentation in
README.zh-CN.md.
4.0.1 #
- update
material_uiversion to1.3.0
4.0.0 #
Breaking Changes ⚠️ #
- Dependency Migration: Replaced legacy Flutter package imports with
material_uiandcupertino_uifollowing the Flutter 3.44 package decoupling. - SDK Constraints: Bumped minimum Flutter SDK requirement to
>=3.44.0.
Features & Improvements #
- Example App: Updated the example application code and import paths to align with the new dependencies.
- Linter & Analysis: Added build directory exclusions (
build/**) inanalysis_options.yamlto optimize static analysis performance.
3.1.3 #
- Widget Inspector Optimization: Dynamically mount/unmount
OverlayinToastScopeso that when no toasts are active, the widget tree remains clean without extraOverlaynodes interfering with DevTools inspection. - Singleton ToastManager: Refactored
ToastManagerto a singleton instance (ToastManager.instance), preventingnullpointer/assertion exceptions during Hot Reload, Hot Restart, and DevTools inspection cycles. - Enhanced DevTools Diagnostics: Added
debugFillPropertiesimplementations forToastScopeandToastOverlayto support rich diagnostic inspector views in Flutter DevTools.
3.1.2 #
- fix bugs
3.1.1 #
- fix bugs
3.0.2 #
-- MessageType --> ToastMessageType
3.0.1 #
🐛 Bug Fixes #
- Fixed
Unsupported operation: removeAtcrash when stacking more toasts thanmaxVisibleToasts. The internal_enforceMaxVisiblewas callingremoveAton an unmodifiable list. - Fixed message toast visual: replaced
BackdropFilterglassmorphism with Material 3 tonal card styling (opaque tinted background + shadow) for reliable contrast on any background.
3.0.0 #
⚠️ Breaking Changes #
- Complete API redesign —
FlutterToastPro→Toast,FlutterToastProWrapper→ToastScope - Removed rxdart dependency — zero external dependencies, pure Flutter + Dart
- Removed
EffectType— replaced by Material 3ColorSchemeauto-adaptation - Removed old options classes —
ToastUiOptions,ToastMessageOptions,OverlayOptions, etc. replaced by unifiedToastThemeData
✨ New Features #
- Stackable toasts — multiple message toasts displayed simultaneously with smooth stacking animations
- Glassmorphism — frosted glass (backdrop blur) styling, toggle via
enableGlassmorphism - Swipe to dismiss — swipe up/down to close message toasts, toggle via
enableSwipeToDismiss - Future-based API — all
Toast.show/success/warning/error/loadingreturnFuture<void>that completes on dismiss - Action buttons — attach
ToastAction(label, onPressed)to any message toast (e.g. "Undo") - Per-toast positioning —
ToastPosition.top,.center,.bottomper call - Material 3 design — auto light/dark theme adaptation via
Theme.of(context).colorScheme - Default icons — type-specific icons (info, check, warning, error) shown by default
- Custom builders —
ToastMessageBuilder,ToastLoadingBuilder,ToastProgressBuilder - In-place progress updates — calling
Toast.progress()repeatedly updates smoothly without flicker
🗑️ Removed #
rxdartandrxdart_flutterdependenciesFlutterToastProsealed class (replaced byToast)FlutterToastProWrapper(replaced byToastScope)FlutterToastProDefaultsEffectType,ToastTypeenumsToastEventglobal event bus- All old option classes:
ToastUiOptions,ToastMessageOptions,ToastLoadingOptions,ToastProgressOptions,OverlayOptions,ToastAnimationOptions,MessageStyleOptions,LoadingStyleOptions,ProgressStyleOptions
2.2.0 #
- Add new features and improvements to the toast system, including enhanced customization options and improved performance
2.1.1 #
- fix bug
2.1.0 #
- Add support for more properties
2.0.0 #
- Enhance toast system with new loading and progress options, and improve message type definitions
1.2.0 #
- Add more customization options for default styles
1.0.2 #
- Customizable overlay colors and event handling to enhance Toast
1.0.1 #
- Fix the error that MessageType is not exported
1.0.0 #
- release 1.0.0 version
