smooth_dialog 1.0.0 copy "smooth_dialog: ^1.0.0" to clipboard
smooth_dialog: ^1.0.0 copied to clipboard

A modern, highly customizable Flutter dialog package with beautiful animations and platform-aware UI. Create stunning alert and loading dialogs with minimal code!

1.0.0 Major Release ๐ŸŽ‰ #

Breaking Changes #

  • Complete API redesign - Replaced builder pattern with clean, modern static methods using named parameters
  • Removed old API - SmoothDialog class with builder pattern no longer available
  • Simplified callbacks - Button text and actions are combined in DialogButton objects: DialogButton(text: 'OK', onPressed: (dialog) => dialog.dismiss())
  • Manual dismissal required - Buttons no longer auto-dismiss dialogs, giving you full control

New Features #

  • โœจ Simplified API - Use SmoothAlertDialog.show() and SmoothLoadingDialog.show() with named parameters
  • ๐ŸŽฏ Clean button pattern - DialogButton class combines text and action in one place
  • ๐ŸŽจ Enhanced customization - New SmoothDialogConfig and SmoothLoadingConfig for comprehensive styling
  • ๐ŸŽญ Custom widgets - Support for titleWidget and contentWidget for full UI control
  • ๐Ÿ–ผ๏ธ Icon support - Add icons to alert dialogs easily
  • ๐ŸŽฌ Customizable animations - Control animation duration and curves
  • ๐Ÿ’ช Better type safety - Proper typing throughout the codebase
  • ๐Ÿ“ฑ Improved responsive design - Better sizing and layout on all screen sizes

Bug Fixes #

  • ๐Ÿ› Fixed critical state management bug where _isShowing flag was incorrectly reset
  • ๐Ÿ› Fixed loading dialog dismiss issues with proper overlay management
  • ๐Ÿ› Improved memory management and lifecycle handling

Improvements #

  • โšก Better performance with optimized widget rebuilds
  • ๐Ÿ“š Comprehensive documentation and examples
  • ๐ŸŽฏ More intuitive API with better IDE autocomplete support
  • ๐Ÿงน Cleaner codebase with better organization
  • ๐Ÿ”— Dialog controller provides explicit control over dismissal

Migration Guide #

See README.md and MIGRATION_GUIDE.md for detailed migration instructions from v0.0.4 to v1.0.0

Key Change: Button text and actions are now combined:

// Old (v0.0.4)
onPositivePressed: () => doSomething()

// New (v1.0.0)
positiveButton: DialogButton(
  text: 'OK',
  onPressed: (dialog) {
    dialog.dismiss();
    doSomething();
  },
)

0.0.4 #

  • Add loading dialog
  • Optimize structure of code

0.0.3 #

  • Add license to the project
  • Fix the issue can run show dialog on web
0
likes
160
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A modern, highly customizable Flutter dialog package with beautiful animations and platform-aware UI. Create stunning alert and loading dialogs with minimal code!

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smooth_dialog