Skip to content
pubscout

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.

WASM-readyUses material_ui
$ flutter pub add m3e_buttons
Source repository

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.

Works with

Packages commonly used together with m3e_buttons: ones it builds on, ones built on it, and its own family.