Authoritative reference for Flutter framework APIs, widget deprecations, design package unbundling, and version changelogs from 1.0 through 3.x+. Helps migrate deprecated widgets and upgrade legacy Flutter apps.
Ships in dart-sdk-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill provides an authoritative, structured reference for Flutter framework releases, widget deprecations, API replacements, Material 3 design migrations, the decoupling of standalone material_ui and cupertino_ui packages, and legacy Flutter codebase rescue runbooks.
| Deprecated / Obsolete API | Introduced / Deprecated In | Modern Replacement | Reference |
|---|---|---|---|
Color.withOpacity(o) | Deprecated in Flutter 3.22 | Color.withValues(alpha: o) | Widget Deprecations |
MaterialState / MaterialStateProperty | Deprecated in Flutter 3.22 | WidgetState / WidgetStateProperty | Widget Deprecations |
WillPopScope | Deprecated in Flutter 3.12+ | PopScope(canPop: ..., onPopInvokedWithResult: ...) | Widget Deprecations |
FlatButton, RaisedButton, OutlineButton | Deprecated in Flutter 2.0 | TextButton, ElevatedButton, OutlinedButton | Widget Deprecations |
TextTheme.headline1...6, bodyText1/2 | Deprecated in Flutter 3.7+ | displayLarge...small, bodyLarge/Medium | Widget Deprecations |
ThemeData.accentColor | Deprecated in Flutter 2.5+ | ColorScheme.secondary | Widget Deprecations |
Scaffold.of(context).showSnackBar() | Deprecated in Flutter 2.0 | ScaffoldMessenger.of(context).showSnackBar() | Widget Deprecations |
package:flutter/material.dart | Deprecated in Flutter 3.50 (Introduced 3.44) | package:material_ui/material_ui.dart | Material & Cupertino Migration |
package:flutter/cupertino.dart | Deprecated in Flutter 3.50 (Introduced 3.44) | package:cupertino_ui/cupertino_ui.dart | Material & Cupertino Migration |
DropdownButtonFormField(onChanged: cond ? fn : null) | Updated in Flutter 3.50 (material_ui 1.8.0) | DropdownButtonFormField(enabled: cond, onChanged: fn) | Widget Deprecations |
TextStyle.getParagraphStyle() (without hyphens) | Updated in Flutter 3.50 | Add Hyphens? hyphens parameter (Hyphens.manual / Hyphens.hidden) | Widget Deprecations |
BottomNavigationBar | Legacy M2 Navigation | NavigationBar (Material 3) | Material 3 Guide |
ToggleButtons | Legacy M2 Toggle | SegmentedButton<T> (Material 3) | Material 3 Guide |
describeEnum(e) | Removed in Flutter 3.47 | e.name (Dart 2.15+ native property) | Widget Deprecations |
ContextMenuButtonType / item.type | Superseded in Flutter 3.47.9 | ContextMenuButtonKind / item.kind (with _ case) | Widget Deprecations |
ReorderableListView.onReorder | Deprecated in Flutter 3.44 | onReorderWithOldAndNewIndex | Widget Deprecations |
PopupMenuButton | Legacy popup menu | MenuAnchor / SubmenuButton | Material 3 Guide |
material_ui & cupertino_ui Package Migrationdart fix --apply --code=migrate_design_widgets to update imports and dependencies automatically.package:flutter/widgets.dart.
👉 Read the full Material & Cupertino UI Migration Guide.WillPopScope with PopScope for zero-stutter predictive back gestures on Android 14+ and iOS.withOpacity with withValues(alpha: ...) to eliminate 8-bit precision loss and color clipping.MaterialState with universal WidgetState.
👉 Read the full Widget Deprecations & Replacements Guide.ColorScheme.fromSeed(seedColor: ...).BottomNavigationBar to NavigationBar, ToggleButtons to SegmentedButton, and M2 buttons to FilledButton.
👉 Read the full Material 2 to Material 3 Guide.| Document | Focus Area | Description |
|---|---|---|
material-ui-and-cupertino-ui-migration.md | Package Decoupling | Complete runbook for migrating from SDK-bundled material/cupertino to standalone material_ui and cupertino_ui. |
flutter-to-dart-version-matrix.md | Version Mapping | Full mapping of Flutter 1.0–3.50+ to bundled Dart SDKs and engine milestones. |
widget-deprecations-and-replacements.md | Widget Dictionary | Before/After code snippets for all deprecated Flutter widgets and properties. |
material-2-to-material-3-guide.md | UI & Theming | Comprehensive Material 3 migration guide, dynamic color schemes, and new components. |
rescuing-legacy-flutter-apps.md | Upgrade Runbook | 5-phase structured runbook for stepping legacy Flutter apps to modern Flutter. |
material_ui & cupertino_uidart fix --apply --code=migrate_design_widgets to rewrite imports.pubspec.yaml dependencies include material_ui and cupertino_ui.WillPopScope, Color.withOpacity, MaterialStateProperty).PopScope, Color.withValues(alpha: ...), WidgetStateProperty).ThemeData using ColorScheme.fromSeed(seedColor: ...).BottomNavigationBar → NavigationBar) and controls (ToggleButtons → SegmentedButton).pubspec.yaml environment block.references/flutter-to-dart-version-matrix.md (opens in a new tab)references/material-2-to-material-3-guide.md (opens in a new tab)references/material-ui-and-cupertino-ui-migration.md (opens in a new tab)references/rescuing-legacy-flutter-apps.md (opens in a new tab)references/widget-deprecations-and-replacements.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dart-sdk-skills:flutter-sdk-changelogfrom dart-sdk-skills
npx claudepluginhub randalschwartz/dart-sdk-skills --plugin dart-sdk-skills2 skills in this plugin
Other plugins' skills for the same job