m3e_buttons 0.0.3 copy "m3e_buttons: ^0.0.3" to clipboard
m3e_buttons: ^0.0.3 copied to clipboard

Material 3 Expressive button components for Flutter with spring motion, toggle groups, and split menus.

0.0.3 #

  • Add borderRadius parameter and make it double?.

0.0.2 #

  • Breaking Changes:
    • WidgetStateProperty Shift: Most color/cursor parameters in decoration classes are now WidgetStateProperty.
    • Parameter Removals:
      • size removed from all Decoration classes (now managed by the widget's size parameter).
      • disabledBackgroundColor and disabledForegroundColor removed (use backgroundColor and foregroundColor with WidgetStateProperty).
      • connectedHoveredInnerRadius and connectedPressedInnerRadius removed from M3EToggleButtonDecoration.
    • Renamed Components:
      • SplitButtonM3EM3ESplitButton
      • SplitButtonM3EActionM3ESplitButtonItem
      • SplitButtonM3EDecorationM3ESplitButtonDecoration
  • New Features:
    • Added specialized button classes: M3EElevatedButton, M3EFilledButton, M3EOutlinedButton, M3ETextButton.
    • New .styleFrom() helper: Available on M3EButtonDecoration and M3EToggleButtonDecoration for simple flat color assignments.
    • New ButtonStyle Parity: Added shadowColor, elevation, padding, minimumSize, fixedSize, maximumSize, alignment, visualDensity, tapTargetSize, splashFactory to M3EButtonDecoration.
    • Custom Layers: Added backgroundBuilder and foregroundBuilder to M3EButtonDecoration.
  • Breaking Changes:
    • M3EButton: Renamed label parameter to child for alignment with Flutter standards. Use M3EButton.icon for icon+label layouts.
    • SplitButtonM3E renamed to M3ESplitButton.
    • SplitButtonM3EItem renamed to M3ESplitButtonItem.
  • Performance:
    • Optimized M3EBaseButtonState using ValueNotifier and AnimatedBuilder to minimize rebuilds during interaction animations.
  • Visuals:
    • Fixed gradient background clipping during shape morphing.
    • Added backgroundBuilder and foregroundBuilder to M3EButtonDecoration.
  • Features:
    • M3EToggleButtonGroup now supports advanced overflow handling (menu, popup) and label state transitions.
    • Full screen-reader support via semanticLabel and improved focus management.

0.0.1 #

  • Initial Release
  • Brings Material 3 Expressive buttons to Flutter with all the interaction animations
6
likes
160
points
55
downloads

Documentation

API reference

Publisher

verified publishermuditpurohit.tech

Weekly Downloads

Material 3 Expressive button components for Flutter with spring motion, toggle groups, and split menus.

Repository (GitHub)
View/report issues

Topics

#ui #material-3-expressive #buttons #button-groups #split-buttons

License

MIT (license)

Dependencies

flutter, motor

More

Packages that depend on m3e_buttons