mdc_web
0.6.0, released 5 years ago by defylogic.dev
Dart wrapper for the material-components-web javascript library
What it does
It provides Dart bindings and wrapper classes for the material-components-web JavaScript library, allowing web developers to use MDC components directly in Dart. It includes classes like MDC* corresponding to the Material Design Web component reference.
AI-written summary of version 0.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a web application in Dart and want to use the official material-components-web components.
- You need access to specific MDC JavaScript classes via Dart wrappers.
Skip it when
- You are building standard Flutter mobile or desktop applications rather than targeting Dart web with JS libraries.
- You require foundation and adapter classes for deep customization within other web frameworks.
Strengths
- Direct mapping of material-components-web classes to Dart.
- Well-documented classes with links to design guidelines, component references, and demos.
Weaknesses
- Foundation and adapter classes are currently beyond the scope of this package.
- Requires manual inclusion of the JavaScript library script in index.html.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Include the material-components-web script in your index.html just before the main.dart.js script.
import 'package:mdc_web/mdc_web.dart';
// Use MDC* classes as described by the Material Design Web component reference.Alternatives
Packages that do the same job and could replace mdc_web.
- shadcn_ui
Flutter port of the shadcn/ui design system with customizable components.
95Compare - material_3_expressive
A faithful Flutter implementation of the Material 3 Expressive component set.
83Compare - shad
A Flutter port of shadcn/ui with 40+ components and no Material dependency.
83Compare - m3e_core
A Flutter package providing Material 3 expressive components and shapes.
76Compare