flutter_easy_button 1.0.4
flutter_easy_button: ^1.0.4 copied to clipboard
A customizable Material 3 button package with filled and outlined styles, loading states, icons, and full customization support.
1.0.0 #
- Initial release.
- Added
CustomFilledButton. - Supports loading state.
- Supports disabled state.
- Supports optional icons.
- Supports full-width layout.
- Customizable colors.
1.0.1 #
- Fixed issue for color changing during loading.
1.0.2 #
- Made textColor parameter required.
1.0.3 #
🎉 Major Update - Dual Button Styles #
New Features
- ✨ Added
ButtonTypeenum (filled, outlined) for type-safe button selection - 🎨 Added
CustomButtonwidget with support for both filled and outlined styles - 🔲 Added
CustomOutlineButtonwidget with all CustomButton features - 🎯 Made
buttonTypeparameter required - users must explicitly select button style - ✏️ Added
borderColorparameter for custom border colors (defaults to buttonColor) - 📏 Added
borderWidthparameter for adjustable border thickness (default: 2.0) - 🔄 Both button classes now support dynamic type switching
Improvements
- 🚀 Zero dependencies - lightweight and fast
- 📱 Production-ready with comprehensive example app
- 📚 Enhanced documentation with real-world usage examples
- 🎨 Material 3 compliant design
- ⏳ Smart loading states that preserve button colors
Breaking Changes
- ⚠️
buttonTypeis now a required parameter - ⚠️
textColorandbuttonColorare now required parameters
Migration Guide
// Old (v1.0.2)
CustomFilledButton(
buttonText: 'Click Me',
onPressed: () {},
)
// New (v1.0.3)
CustomButton(
buttonText: 'Click Me',
buttonColor: Colors.blue,
textColor: Colors.white,
buttonType: ButtonType.filled,
onPressed: () {},
)
