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: () {},
)
