/flutter-helper-utils:adaptive-ui-and-lists-with-flutter-helper-utilsfrom Flutter Helper Utils
Builds responsive Flutter layouts and typed lists using flutter_helper_utils: breakpoint detection, PlatformTypeProvider, BreakpointLayoutBuilder, TypedListView with pull-to-refresh, infinite scroll, and empty states.
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.
Two surfaces where agents invent parameter names and misremember the breakpoint model. Use the exact contracts below.
Defaults (Breakpoint.defaults): mobile width 600, tablet width
1200, desktop width 1800. Matching returns the FIRST breakpoint
whose width >= available width (widths are ceilings, NOT min-widths):
Do not assume the common min-width model (mobile 0+, tablet 600+,
desktop 1200+) - boundaries land differently (600 exactly is MOBILE here).
Custom sets: Breakpoint(width: 900, name: 'compact'); the provider sorts
them by width. Comparisons: bp.isMobile/isTablet/isDesktop (name
match), >/</isBetween(lower, upper) (width match).
runApp(PlatformTypeProvider( // safe ABOVE MaterialApp (9.0+)
// breakpoints: Breakpoint.defaults,
child: MyApp(),
));
final bp = context.watchBreakpoint; // rebuilds on change (NOT context.breakpoint)
final bp2 = context.readBreakpoint; // one-shot, no rebuild (NOT .of(listen: false))
FlutterError - there is no null fallback;
wrap the app root, not a subtree, unless scoping is intentional.BreakpointLayoutBuilder(builder: (context, breakpoint) => ...) and
PlatformInfoLayoutBuilder(builder: (context, info) => ...) are the
widget forms; PlatformSizeInfo carries breakpoint, orientation,
and platform (from PlatformEnv.targetPlatform).TypedListView<Product>(
items: products,
itemBuilder: (context, index, item) => ProductTile(item), // THIS order
spacing: 12, // gap; do NOT also pass separatorBuilder
emptyBuilder: (context) => const EmptyState(), // NOT emptyWidget
onRefresh: () => reload(), // wraps in RefreshIndicator
onEndReached: () => loadMore(), // NOT onLoadMore/onPaginate
onEndReachedThreshold: 200, // px before the end (default 200)
isLoadingMore: isLoading, // gates repeat onEndReached calls
header: const ListHeader(), // direct widgets, not builders
footer: const ListFooter(),
paginationWidget: const LoadingSpinner(), // shown before footer
itemKeyBuilder: (item) => ValueKey(item.id), // stable keys + correct
) // findChildIndexCallback
// Same surface as an extension:
products.buildListView(itemBuilder: (context, index, item) => ...);
Assert matrix (violations crash in debug):
separatorBuilder XOR spacing - never both.itemExtent XOR prototypeItem - never both.itemExtent/prototypeItem require NO header/footer/pagination/
separators/spacing (every child must have the same extent).cacheExtent (deprecated 9.1) XOR scrollCacheExtent; prefer
scrollCacheExtent: ScrollCacheExtent.pixels(300) or
ScrollCacheExtent.viewport(1.5).Behavior notes:
onEndReached responds only to the list's own scroll notifications
when remaining extent <= threshold and isLoadingMore is false. It prevents
another request while the callback's returned future is pending, including
across parent rebuilds. Return the complete fetch operation. In older
versions, set isLoadingMore before another scroll notification can arrive.showScrollbar: true wraps in Scrollbar using the SAME controller
you pass; provide one when you enable it.buildListView eagerly copies the iterable to a list.TypedSliverList mirrors items/itemBuilder/header/footer/separators/
spacing/itemKeyBuilder for CustomScrollView use (no physics/refresh/
scrollbar - those belong to the outer scroll view).controller.animateToStart() / animateToEnd() / jumpToEnd(),
animateBy(delta), pageScroll(...), scrollToPercentage(50),
snapToIndex(i, itemExtent: 72), scrollProgress (0-1),
isAtStart/isAtEnd, isNearEnd(threshold: 50), canScroll,
isUserScrollingForward, debugPrintScrollInfo(). Guard multi-client
controllers with hasSingleClient.
grep -A2 'flutter_helper_utils' pubspec.lock
(10.x documented here; TypedListView pre-8.5 had itemBuilder(item)
and headerBuilder/footerBuilder - see the migrate skill).grep -rn "PlatformTypeProvider" lib/ -
nesting a second provider silently re-scopes breakpoints.flutter analyze; assert-matrix violations only appear at RUNTIME in
debug builds, so run the affected screen or a widget test.FlutterError: ... does not contain a PlatformTypeProvider: the
provider is missing or below the calling context - move it up.onEndReached firing repeatedly: return the fetch future and keep
isLoadingMore true while any separately owned loading operation is active.What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/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./migrate-flutter-helper-utils-v9-to-v10Migrate apps from flutter_helper_utils 9.x to 10.x when Material types, theme or scaffold lookups, snackbar/banner helpers, page routes, or carousel controllers still use SDK Material. Covers material_ui imports, minimum SDK and dependency constraints, and legacy compatibility bridge limits.npx claudepluginhub omar-hanafy/flutter_helper_utils --plugin flutter-helper-utilsOther plugins' skills for the same job