m3e_buttons
1.0.4, released 3 weeks ago by muditpurohit.tech
Material 3 Expressive button components for Flutter with spring motion and toggle groups.
What it does
Provides Material 3 Expressive button components in Flutter featuring spring-driven physics, shape morphing, toggle button groups, split buttons, and floating action buttons. It supports localized rebuilds using ValueNotifier patterns and decoration-based styling.
AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want Material 3 Expressive design patterns in your Flutter app.
- You need spring physics animations on button press, hover, and shape morphing without writing custom animation code.
- You require complex button layouts like split buttons, toggle groups, or connected button groups.
Skip it when
- Your project uses a Flutter SDK older than version 3.47.0.
- You prefer standard built-ins or Cupertino widgets exclusively.
Strengths
- Faithful implementation of Material 3 Expressive design with spring physics.
- Localized rebuilds ensure high performance on interactions like hover and press.
- Rich collection of specialized button types (toggle buttons, split buttons, FAB menus).
Weaknesses
- Strict requirement on Flutter 3.47+ and the standalone material_ui package.
- Breaking API changes across minor/major version bumps require careful migration.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires Flutter 3.47.0+ and adding material_ui to pubspec.yaml along with m3e_buttons.
import 'package:material_ui/material_ui.dart';
import 'package:m3e_buttons/m3e_buttons.dart';
class Demo extends StatelessWidget {
const Demo({super.key});
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
M3EFilledButton(
onPressed: () {},
child: const Text('Save'),
),
],
);
}
}Alternatives
Packages that do the same job and could replace m3e_buttons.
- material_3_expressive
A faithful Flutter implementation of the Material 3 Expressive component set.
83Compare - buttons_tabbar
A Flutter TabBar where each tab indicator is a toggle button.
83Compare - m3e_collection
Aggregated exports of all Material 3 Expressive components and design tokens for Flutter.
47Compare - mdc_web
Dart wrapper for the material-components-web javascript library
48Compare
Works with
Packages commonly used together with m3e_buttons: ones it builds on, ones built on it, and its own family.
- material_uim3e_buttons depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- motorm3e_buttons depends on itUnified motion system combining physics-based springs and duration-based curves.
- m3e_coreSame familyA Flutter package providing Material 3 expressive components and shapes.
- m3e_card_listSame familyFlutter package for Material 3 card lists with dynamically rounded corners