material-components-flutter

Migrate legacy Material Components usage to the Flutter SDK.

4|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/tiantangcao1980-web/DesignDNA-Skills --skill material-components-flutter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: material-components-flutter
Source: https://github.com/tiantangcao1980-web/DesignDNA-Skills/tree/main/designdna/skills/material-components-flutter
Command: npx skills add https://github.com/tiantangcao1980-web/DesignDNA-Skills --skill material-components-flutter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The historical standalone Material Components package has been consolidated into Flutter's core SDK, eliminating external dependencies and ensuring consistent Material 3 integration across Flutter apps.

Core Features & Use Cases

  • Access to the full set of Material widgets via package:flutter/material, including buttons, app bars, navigation rails, cards, chips, dialogs, bottom sheets, and text fields.
  • Seamless migration path from material_components_flutter to the built-in Flutter Material API, with guidance on removing the standalone package and updating imports.

Quick Start

Remove material_components_flutter from your pubspec.yaml and import package:flutter/material in your Dart files.

Frequently Asked Questions about material-components-flutter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate from the standalone Material Components package to the Flutter SDK?

To migrate Material Components to the Flutter SDK, remove the standalone package from your pubspec.yaml and update your Dart imports to use package:flutter/material for built-in widgets.

Why should I consolidate Material Components into the core Flutter SDK?

Consolidating Material Components into the Flutter SDK eliminates external dependencies and ensures consistent Material 3 integration across your app's UI widgets, buttons, and navigation rails.

What Material widgets are available in package:flutter/material after migration?

The Flutter SDK provides built-in Material widgets including buttons, app bars, navigation rails, cards, chips, dialogs, bottom sheets, and text fields via package:flutter/material.

Can I use built-in Flutter Material widgets without external dependencies?

Yes, you can use built-in Flutter Material widgets without external dependencies by importing package:flutter/material, which covers common UI patterns and eliminates the standalone library requirement.

Do I need to remove material_components_flutter from pubspec.yaml for Material 3?

Yes, you need to remove material_components_flutter from your pubspec.yaml to use the SDK's built-in Material implementation, ensuring consistent Material 3 integration without external dependencies.