m3e_buttons 1.0.1
m3e_buttons: ^1.0.1 copied to clipboard
Material 3 Expressive button components for Flutter with spring motion, toggle groups, and split menus.
1.0.1 #
- buttons: preserve base token size names when custom action widths or heights are used
- toggle-button: prioritize checked-state radius over pressed-state radius for checked buttons
- buttons: add Material 3 Expressive FAB, extended FAB, and FAB menu APIs with token sizing, color roles, decoration overrides, and tests
1.0.0 #
- pubspec: migrate to standalone material_ui package for flutter 3.47
- pubspec: Update the minimum flutter SDK to 3.47.0
0.0.6 #
- toggle-button: expose alignment parameter in
M3EToggleButtonDecorationandstyleFrom - toggle-button: add allowMultilineLabel flag to enable wrapping label content
- buttons: update label text style to match M3E typography specs [Contributed by @paul-ube]
0.0.5 #
- fixup: fix connected toggle button layout on mobile devices
- example: update connected button group demo and gradle properties
0.0.4 #
- toggle-button: Match the button colors to M3E color spec
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