m3e_buttons 0.0.3
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
borderRadiusparameter and make it double?.
0.0.2 #
- Breaking Changes:
- WidgetStateProperty Shift: Most color/cursor parameters in decoration classes are now
WidgetStateProperty. - Parameter Removals:
sizeremoved from all Decoration classes (now managed by the widget'ssizeparameter).disabledBackgroundColoranddisabledForegroundColorremoved (usebackgroundColorandforegroundColorwithWidgetStateProperty).connectedHoveredInnerRadiusandconnectedPressedInnerRadiusremoved fromM3EToggleButtonDecoration.
- Renamed Components:
SplitButtonM3E→M3ESplitButtonSplitButtonM3EAction→M3ESplitButtonItemSplitButtonM3EDecoration→M3ESplitButtonDecoration
- WidgetStateProperty Shift: Most color/cursor parameters in decoration classes are now
- New Features:
- Added specialized button classes:
M3EElevatedButton,M3EFilledButton,M3EOutlinedButton,M3ETextButton. - New
.styleFrom()helper: Available onM3EButtonDecorationandM3EToggleButtonDecorationfor simple flat color assignments. - New ButtonStyle Parity: Added
shadowColor,elevation,padding,minimumSize,fixedSize,maximumSize,alignment,visualDensity,tapTargetSize,splashFactorytoM3EButtonDecoration. - Custom Layers: Added
backgroundBuilderandforegroundBuildertoM3EButtonDecoration.
- Added specialized button classes:
- Breaking Changes:
M3EButton: Renamedlabelparameter tochildfor alignment with Flutter standards. UseM3EButton.iconfor icon+label layouts.SplitButtonM3Erenamed toM3ESplitButton.SplitButtonM3EItemrenamed toM3ESplitButtonItem.
- Performance:
- Optimized
M3EBaseButtonStateusingValueNotifierandAnimatedBuilderto minimize rebuilds during interaction animations.
- Optimized
- Visuals:
- Fixed gradient background clipping during shape morphing.
- Added
backgroundBuilderandforegroundBuildertoM3EButtonDecoration.
- Features:
M3EToggleButtonGroupnow supports advanced overflow handling (menu, popup) and label state transitions.- Full screen-reader support via
semanticLabeland improved focus management.
0.0.1 #
- Initial Release
- Brings Material 3 Expressive buttons to Flutter with all the interaction animations