Skip to main content

flutter_toast_pro 4.1.2 copy "flutter_toast_pro: ^4.1.2" to clipboard
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 locked when a toast is dismissed (e.g. hideLoading()) from another widget's dispose or during build/layout: overlay and scope updates are deferred to the end of the frame.

4.1.1 #

  • update material_ui version to ^1.6.0
  • update cupertino_ui version to ^1.1.2

4.1.0 #

  • update material_ui version to ^1.4.0
  • update cupertino_ui version to ^1.1.1
  • SDK Constraints: Bumped minimum Flutter SDK requirement to >=3.47.0 and Bumped minimum Dart SDK requirement to >=3.13.0

4.0.2 #

  • Ship AI agent skills (flutter-toast-pro-setup, flutter-toast-pro-toasts) for dart 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_ui version to 1.3.0

4.0.0 #

Breaking Changes ⚠️ #

  • Dependency Migration: Replaced legacy Flutter package imports with material_ui and cupertino_ui following 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/**) in analysis_options.yaml to optimize static analysis performance.

3.1.3 #

  • Widget Inspector Optimization: Dynamically mount/unmount Overlay in ToastScope so that when no toasts are active, the widget tree remains clean without extra Overlay nodes interfering with DevTools inspection.
  • Singleton ToastManager: Refactored ToastManager to a singleton instance (ToastManager.instance), preventing null pointer/assertion exceptions during Hot Reload, Hot Restart, and DevTools inspection cycles.
  • Enhanced DevTools Diagnostics: Added debugFillProperties implementations for ToastScope and ToastOverlay to support rich diagnostic inspector views in Flutter DevTools.

3.1.2 #

  • fix bugs

3.1.1 #

  • fix bugs

3.1.0 #

  • add initialEntries parameter
  • add overlayKey parameter

3.1.0 #

  • update default color

3.0.2 #

-- MessageType --> ToastMessageType

3.0.1 #

🐛 Bug Fixes #

  • Fixed Unsupported operation: removeAt crash when stacking more toasts than maxVisibleToasts. The internal _enforceMaxVisible was calling removeAt on an unmodifiable list.
  • Fixed message toast visual: replaced BackdropFilter glassmorphism 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 3 ColorScheme auto-adaptation
  • Removed old options classes — ToastUiOptions, ToastMessageOptions, OverlayOptions, etc. replaced by unified ToastThemeData

✨ 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/loading return Future<void> that completes on dismiss
  • Action buttons — attach ToastAction(label, onPressed) to any message toast (e.g. "Undo")
  • Per-toast positioning — ToastPosition.top, .center, .bottom per 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 #

  • rxdart and rxdart_flutter dependencies
  • FlutterToastPro sealed class (replaced by Toast)
  • FlutterToastProWrapper (replaced by ToastScope)
  • FlutterToastProDefaults
  • EffectType, ToastType enums
  • ToastEvent global 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
3
likes
160
points
115
downloads
screenshot

Documentation

API reference

Publisher

verified publisherjsontodart.cn

Weekly Downloads

Overlay-based toast/loading/progress helper for Flutter apps.

Repository (GitHub)
View/report issues

Topics

#toast #message #loading #progress

License

Apache-2.0 (license)

Dependencies

cupertino_ui, flutter, material_ui

More

Packages that depend on flutter_toast_pro