Skip to content
Back to skills

Flutter Knowledge Patch

ASecurity

Flutter

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aijavascriptjavaswiftkotlinexpresstestingdebuggingapibackenddocumentation

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill flutter-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flutter Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flutter Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-flutter-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-flutter-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: flutter-knowledge-patch
description: Flutter
version: "3.50"
license: MIT
metadata:
  author: Nevaberry
---


# Flutter compatibility guidance

Load this skill for Flutter and Dart migrations, platform integration, web and
renderer configuration, widget APIs, accessibility, and build tooling.
Use the topic references for complete conditions, examples, and version-specific
behavior. Experimental and upcoming features retain those qualifications.

## Topic index

| Reference | Topics |
| --- | --- |
| [Migrations and breaking changes](references/migrations-and-breaking-changes.md) | Standalone design libraries, themes, API removals, layout contracts |
| [Widgets and theming](references/widgets-and-theming.md) | Menus, forms, dates, expansion, visual states, tooltips |
| [Navigation, layout, and animation](references/navigation-layout-and-animation.md) | Route completion, sheets, overlays, predictive back, scrolling |
| [Accessibility, input, and testing](references/accessibility-input-and-testing.md) | Semantics, selection, preferences, validation, test APIs |
| [Android](references/android.md) | Gradle, Kotlin, SDK requirements, ABIs, platform views |
| [Apple platforms](references/apple-platforms.md) | SwiftPM, UIScene, deployment, signing, native behavior |
| [Desktop and embedding](references/desktop-and-embedding.md) | Thread merging, native hosts, experimental windows, desktop builds |
| [Dart language](references/dart-language.md) | Constructors, wildcards, dot shorthands, inference, extension types |
| [Dart tooling and packages](references/dart-tooling-and-packages.md) | Formatter, analyzer plugins, Pub, workspaces, compilation |
| [Flutter tooling, builds, assets, and plugins](references/tooling-build-assets-and-plugins.md) | Previews, DevTools, hooks, MCP, assets, SDK installation, AI packages |
| [Web, rendering, and graphics](references/web-rendering-and-graphics.md) | Wasm, hosting, web development, Impeller, shaders, GPU resources |

## Breaking changes and deprecations

### Standalone Material and Cupertino

Flutter 3.50 formally deprecates the Material and Cupertino libraries bundled
in the SDK. The standalone packages are `material_ui` and `cupertino_ui`.
Rewrite SDK design-library imports with:

```sh
dart fix --apply --code=migrate_design_widgets
```

If the dependency update fails, add the packages you use with
`flutter pub add material_ui` or `flutter pub add cupertino_ui`, then rerun the
fix. For published packages, ship the migration as a major release.
When a dependency still imports SDK Material, wrap routed content in
`MaterialUiCompatibilityBridge` from `package:material_ui/material_ui.dart`.
For standalone Material localizations, use
`MaterialApp(localizationsDelegates: GlobalMaterialLocalizations.delegates)`;
that package's list includes Material, Cupertino, and Widgets delegates.

### Component themes and widget contracts

Use `CardThemeData`, `DialogThemeData`, and `TabBarThemeData` in their
`ThemeData` slots, and `AppBarThemeData`, `BottomAppBarThemeData`, and
`InputDecorationThemeData` in theirs. Move `ThemeData.indicatorColor` to
`TabBarThemeData.indicatorColor`.
`Form` requires box layout; use `SliverToBoxAdapter` in a sliver list.
External `PipelineOwner` subclasses must be `base`, `final`, or `sealed`;
implementations must extend it or use composition. `IconData` is `final`;
use composition for extra metadata and constants for custom icon definitions.

### Callback, index, and parameter migrations

- Replace `onReorder` with `onReorderItem`: remove at `oldIndex`, then insert
  directly at `newIndex`, including downward moves.
- In separated lists, replace `findChildIndexCallback` with
  `findItemIndexCallback`, returning an index that counts only items.
- Replace `ExpansionTileController` with `ExpansibleController`.
- Use `DropdownButtonFormField.initialValue` for the starting selection.
- Replace `InputDecoration.maintainHintHeight` with `maintainHintSize`.
- Migrate `cacheExtent` and `cacheExtentStyle` settings to `ScrollCacheExtent`.
- Replace `describeEnum(value)` with `value.name`.

`DropdownMenu` accepts nullable type arguments again in Flutter 3.44,
reverting the 3.41 restriction. `RawMenuAnchor` close callbacks changed order;
check sequencing-dependent logic against its migration guide in the reference.
A `SnackBar` with an action stays visible until dismissed or used;
code needing timed dismissal must manage it explicitly.

### Localization, asset, and script migrations

Import generated `app_localizations.dart` from the configured app output
directory. Set `flutter: {generate: true}` in `pubspec.yaml`; remove remaining
`synthetic-package: true` settings from `l10n.yaml`.
Flutter bundles assets and plugins only from the app's transitive dependency
graph. Remove the `--explicit-package-dependencies` option and its opt-out.
Migrate `.flutter-plugins` readers to `.flutter-plugins-dependencies` and SDK
root `version` readers to `bin/cache/flutter.version.json`.
Builds omit `AssetManifest.json` by default; update consumers that expect it.
Remove SkSL bundle inputs such as `--bundle-sksl-path` from build scripts.

### Apple and Android upgrade constraints

Flutter 3.47 requires deployment targets of at least iOS 15 and macOS 12.
UIKit apps built with Xcode 27 fail at launch with the legacy lifecycle.
Flutter migrates most projects during the build; custom native `AppDelegate`
code and plugins relying on that lifecycle require manual migration.
SwiftPM migration runs automatically when building or running iOS/macOS apps;
Flutter warns and falls back to CocoaPods for plugins that still need it.

For AGP 9's built-in Kotlin, remove the separate Kotlin Gradle plugin and
migrate dependencies that still apply it before switching the app. A migrated
Flutter plugin sets `environment.flutter: '>=3.44.0'` in its pubspec.
Use `disable-abi-filtering=true` when preserving product-flavor ABI filters or
when a build type supplies its own filters. The Android reference distinguishes
tested tool combinations, minimum requirements, and older upgrade guidance.

### Renderer and web deployment changes

Impeller is mandatory on iOS; the engine ignores the `FLTEnableImpeller`
opt-out. Desktop Impeller is the default in Flutter 3.47; the graphics reference
contains platform-specific opt-outs and the earlier macOS opt-in settings.
Android renderer fallback rules are version-specific; retain their API,
hardware, and documentation-version conditions from the reference.
Remove backend-specific texture-coordinate flips when fragment shaders sample
OpenGLES render-to-texture outputs; the vertex shader performs the adjustment.

`--pwa-strategy` is deprecated and the generated web service worker cleans up
its own registration. Supply a custom service worker for offline caching.
Change custom bootstrap `entryPointBaseUrl` to `entrypointBaseUrl`.
Use `--web-content-hash` for content hashes on built web assets and
`--no-deprecated-js-interop` to disable deprecated JavaScript interop.

## Frequently used APIs and workflows

### Route completion, sheets, and overlays

`NavigatorState.removeRoute` calls `didComplete`, resuming the route's push
future; `navigator.removeRoute(route, result)` supplies its result.
Custom transition delegates use `record.markForComplete()` when the departing
route should complete. `Navigator.popUntilWithResult` returns a value while
unwinding multiple routes.
Use `scrollableBuilder` for Cupertino sheets and pass its supplied
`ScrollController` to the scrollable to coordinate scrolling and sheet dragging.
`OverlayPortal.overlayChildLayoutBuilder` provides child layout information;
replace `OverlayPortal.targetsRootOverlay` with
`OverlayPortal(overlayLocation: OverlayChildLocation.rootOverlay, ...)`.

### Forms, selection, and accessibility

Use `FormField.errorBuilder` for custom error widgets and
`AutovalidateMode.onUserInteractionIfError` to revalidate after an error.
`formKey.currentState?.clearError()` clears errors while keeping values;
`FormState.fields` exposes registered field states.
`SelectionListener` with `SelectionListenerNotifier` reports subtree selection
existence, collapse, and offsets. `Semantics(blockAccessibilityFocus: true,
child: child)` blocks accessibility focus.
Replace deprecated `containsSemantics` with `isSemantics` in widget tests;
use `accessibilityAnnouncement` to match emitted announcements.

### Wasm compatibility and hosting

Before enabling Wasm on older projects, update `web/index.html` to the web
initialization scheme for Flutter 3.22 and later. Migrate legacy web libraries
using `dart:js_interop` and `package:web`.
Wasm can run single-threaded with standard HTTP headers. For threaded rendering,
pair `Cross-Origin-Opener-Policy: same-origin` with
`Cross-Origin-Embedder-Policy: credentialless` or `require-corp`.
Use `flutter run -d chrome --wasm --cross-origin-isolation` for development.
Release builds strip symbols and omit source maps by default; use
`--source-maps` or `--no-strip-wasm` for the respective debugging information.
For `Target dart2wasm failed`, inspect `Context:` and `Detailed import paths`
above the tool stack trace to locate unsupported dependency imports.

### Dart language and formatter

At language version 3.7, local or parameter `_` declarations introduce no
binding; rename declarations whose value you read. Top-level variables and
members retain their existing behavior.
After raising the SDK lower bound, run `dart pub get` before `dart format`,
including in CI. Use `dart fix` in place of removed `dart format --fix`.
Primary constructors and concise `new`/`factory` declarations are stable in
Dart 3.13; raise the language version and remove the experiment flag when
migrating from the 3.12 experiment.
Dot shorthands use the expected type; a standalone expression statement cannot
start with `.`. Extension-type casts and object patterns can bypass constructors;
invoke a constructor explicitly when validation must run.

### Previews, analyzer plugins, and build hooks

Annotate a widget factory with `@Preview()` and run
`flutter widget-preview start`. Widget previews are stable in Flutter 3.47;
`PreviewThemeData` supports applying multiple theme layers in order.
Register analyzer plugins under top-level `plugins` in `analysis_options.yaml`.
Plugin warnings are enabled by default; plugin lint rules are opt-in under
`diagnostics`. Restart the Dart Analysis Server after configuration changes.
Put package build hooks in `hook/build.dart`. Direct dependencies' hooks run
first; packages using hooks cannot form dependency cycles.
The tooling reference preserves the hook environment allowlist, cache rules,
code asset IDs, and FFI binding example.

Files in this skill

  • SKILL.md6.7 KB
  • references/accessibility.md1.2 KB
  • references/dart-language.md2.2 KB
  • references/dart-tooling.md1.3 KB
  • references/navigation-animation.md1.6 KB
  • references/platform-and-migration.md2.5 KB
  • references/platform-web.md2.5 KB
  • references/tooling-and-config.md2.6 KB
  • references/widgets-and-ui.md3.1 KB
  • references/widgets.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.