/flutter-helper-utils:migrate-flutter-helper-utils-v9-to-v10from Flutter Helper Utils
Migrates Flutter apps from flutter_helper_utils 9.x to 10.x, covering Material UI imports, SDK constraints, and legacy compatibility bridge limits.
Ships in Flutter Helper Utils. 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.
None: SKILL.md is the whole skill.
Inspect the resolved FHU version and existing Material imports first. This hop applies only when crossing 9.x to 10.x; apply earlier hops separately. Record the app's current analyzer/test results before changing it.
Use Flutter >=3.47.7 with Dart >=3.13.5. Set FHU to ^10.0.0 and add
material_ui: ^1.6.0 directly when importing it. FHU requires
dart_helper_utils ^6.1.0 and intl ^0.20.3; resolve old direct pins.
Do not use dependency overrides to hide a conflicting contract.
Replace package:flutter/material.dart with
package:material_ui/material_ui.dart in migrated app files. Keep the FHU
main import or sugar.dart. FHU does not re-export Material UI. Prefix
imports if both Material libraries must coexist during migration.
context.themeData, text/color/component theme getters, theme extensions,
ColorScheme extensions and toThemeData() use Material UI types.context.scaffold / scaffoldOrNull and scaffold-messenger helpers need
Material UI Scaffold/ScaffoldMessenger ancestors. SnackBar, MaterialBanner,
feature controllers and close-reason enums are Material UI types.Use Material UI MaterialApp, themes, Scaffold and feedback widgets. Merely
changing a leaf file's import does not migrate its inherited-widget ancestors.
Do not assign Material UI ThemeData/TextTheme/ColorScheme/controller values
to SDK Material types. They are distinct even when their names match.
Flutter BuildContext, Widget, Color, TextStyle, Navigator and Route are shared.
popPage still delegates to maybePop (PopScope can veto); forcePopPage
still pops directly. The deprecated maybePopPage alias remains available.
Route-taking and named-route helpers stay shared.
MaterialUiCompatibilityBridge in material_ui 1.6.0 is deprecated and transitional. It supplies a mapped legacy theme and legacy localizations under a modern app. It does not convert Material objects/controllers, provide legacy Scaffold or ScaffoldMessenger states, or add modern ancestors under a legacy app. It copies a theme subset, not arbitrary theme extensions or every component theme. Verify remaining legacy subtrees at runtime.
The main FHU import still exports all Dart Helper Utils, including stringo. FHU 9.2.1 already allowed DHU 6.1.0; this release raises its minimum. For a lockfile upgrading from DHU 6.0.x, inspect explicit extension names (show/hide imports and explicit extension invocation). Moved names are StringCaseExtensions, NullableStringCaseExtensions, StringTransformExtensions, NullableStringTransformExtensions and StringChecksExtensions. Ordinary member calls stay available. Title casing now capitalizes the first word; mask rejects negative visible counts with ArgumentError. Read DHU's migration notes for its full contract rather than treating these as new FHU helpers.
String?.textSize now uses context-free left-to-right single-line measurement (null is empty text), fixing the missing TextPainter direction exception. MultiTapDetector honors its configured rolling gap for short and long custom durations. Completion, timeout or gesture cancellation resets progress and reports 0; competing scroll gestures cancel tap sequences. TypedListView.onEndReached ignores nested scrollables and prevents overlapping requests while its returned future is pending or isLoadingMore is true. Return the complete loading operation so the pending guard survives parent rebuilds.
Run pub get, analyze, and the app's tests with the selected SDK. Exercise theme lookup, snackbars/banners, page transitions/back veto, carousel controllers, tab controllers, refresh indicators, and typed-list pagination in the running app. Record legacy-widget/platform boundaries. The repository's migration_guides.md is authoritative for any additional v10 changes; inspect it before claiming the migration complete.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub omar-hanafy/flutter_helper_utils --plugin flutter-helper-utils6 skills in this plugin
/adaptive-ui-and-lists-with-flutter-helper-utilsUse when building responsive/adaptive Flutter layouts or list UIs with the flutter_helper_utils package - PlatformTypeProvider setup, Breakpoint detection (watchBreakpoint/readBreakpoint, mobile/tablet/desktop), BreakpointLayoutBuilder, TypedListView/TypedSliverList, buildListView on iterables, pull-to-refresh, infinite scroll (onEndReached), item spacing/separators, empty states, or scrollCacheExtent tuning./colors-with-flutter-helper-utilsUse when Flutter code parses, converts, or manipulates colors with the flutter_helper_utils package - string-to-Color parsing (hex/rgb/hsl/hwb/named CSS), opacity and channel changes (setOpacity, setAlpha), darken/lighten/shade/tint, WCAG contrast and accessibility checks, color-blindness simulation, color harmonies, toHex output, or reading Colors from JSON/Map config (toColor, tryGetColor)./migrate-flutter-helper-utils-v8-to-v9Use when upgrading a Flutter project from flutter_helper_utils 8.x (or 7.x) to 9.x, or when code hits removed v8 APIs after a version bump - notifier utilities gone, addOpacity/addAlpha undefined, pReplacement/pNamed undefined, dataWhen undefined, core.dart/colors.dart/widgets.dart imports failing, or dart_helper_utils v6 conflicts./upgrade-flutter-helper-utilsUse when bumping the flutter_helper_utils package version in a project or auditing an upgrade's impact - detecting the installed version, sequencing migration hops across v7/v8/v8.5/v9/v10, patch-level bumps, or answering "is it safe to upgrade flutter_helper_utils"./use-flutter-helper-utilsUse when writing or reviewing Flutter code that uses the flutter_helper_utils package - BuildContext theme/text/colorScheme getters, MediaQuery shortcuts (sizePx, widthPx, textScaler), navigation helpers (pushPage, popPage, forcePopPage, dismissAllPopups, routeArgs), platform detection (PlatformEnv, isMobileWeb), AsyncSnapshot.when pattern matching, focus/scaffold-messenger/directionality helpers, num/Size sugar, or deciding between the main import and sugar.dart.Other plugins' skills for the same job