flutter-ios27-design
Skill0 starsChanged 30 days agoMITView on GitHub
Build or restyle Flutter apps in the iOS 26/27 Liquid Glass look — CupertinoApp + liquid_glass_widgets, glass only on the controls layer, opaque grouped content, Apple's iOS 26 colors and SF Pro type ramp, a tinted background wash, the hard scroll edge, continuous corners — with ready Dart foundation files to copy. Use whenever the user wants a Flutter app (new or existing, including Material apps) to look like modern iOS, iOS 26/27, Liquid Glass or "как в нативных iOS-приложениях", asks for a redesign / редизайн / красивый дизайн в стиле iOS / жидкое стекло, or adds screens to an app that already uses liquid_glass_widgets, even without naming the package.
In this repository3 other files it gives its agents.
- app-store-screenshotsSkill
- asoSkill
- branch-reviewSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Keep these in mind on every screen.
- Very specific: line 55
If the app already has these foundation files (lib/core/theme/app_text.dart, …), extend them.
- Very specific: line 116
Run on an iOS 26+ simulator and look at every changed screen in light and dark: xcrun simctl io booted screenshot s.png, xcrun simctl ui …
- Distinctive: line 136
If the project has a screenshot tour script, use it.
- Very specific: line 142
When the user asks for a review or audit, don't edit.
- Distinctive: line 173
Fonts: never bundle SF Pro (Apple's license limits it to Apple platforms).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
iOS 27 design for Flutter apps
The look of a shipped iPhone and Mac app, packaged to repeat in other apps. It is a design
system on top of the liquid_glass_widgets package. The package ships its own agent guide for its API (see "Package API"); this skill covers what that guide
doesn't: the look to aim for, the exact numbers, and foundation code that already gets them
right. Tested with liquid_glass_widgets 1.15.0–1.16.0 on Flutter 3.41+.
Why it reads as iOS and not as "Flutter Cupertino"
Keep these in mind on every screen; they explain the rules below.
- Real Liquid Glass. Flutter's own Cupertino bars are iOS 18 blur. liquid_glass_widgets renders refraction, frost, a lit rim and spring "jelly" motion with shaders.
- The iOS 27 material at standard quality.
AppTheme.glassapplies iOS 27's settings (denser frost, a rim instead of a drop shadow) to every glass widget; the bars get premium rendering fromGlassScaffoldanyway. - Glass only on the controls layer. Bars, tab bar, buttons, switches, sheets, dialogs.
Content (cards, lists, charts, text) stays opaque:
secondarySystemGroupedBackgroundcards onsystemGroupedBackground. That is what iOS does; glass content is hard to read and turns a screen into a glass demo. - Something for the glass to refract.
AppBackgroundlays two soft radial washes over the grouped background, tinted by app state and cross-faded. On flat white, glass looks like nothing. - Apple's exact numbers. The iOS 26 tints (Flutter's
CupertinoColors.systemXare still the old ones), Apple's text ramp with SF Pro tracking, tabular figures, 44 pt targets, one-pixel hairlines, 16 pt gutters, 26 pt continuous corners. - iOS 27 navigation details. Large titles that collapse into the bar, a floating capsule tab bar, the hard scroll edge, round ✕ / ✓ sheet headers, tinted prominent glass buttons.
- Native patterns, not invented ones. Inset grouped sections with UPPERCASE footnote headers and explanatory footers, settings tiles, Fitness-style rings, Health-style charts. For any screen, ask what Apple's own app does on the same kind of screen.
- Restraint. One accent color; other tints mean status. One hero per screen. No shadows, borders or gradients on content.
Workflow
Building or restyling: steps 1–5. Asked only to review or audit: "Review without changing" below.
1. Read the project
pubspec.yaml/pubspec.lock: liquid_glass_widgets and its version, state management, routing (go_router?), localization.- Root widget:
MaterialApporCupertinoApp; how much Material is there (grep -rln "package:flutter/material.dart" lib | wc -l). - Platforms (
android/,windows/,macos/folders) and which of them ship. - The iOS deployment target (
IPHONEOS_DEPLOYMENT_TARGET,ios/Podfile). The package draws the glass itself, so users on iOS 18 and older also get iOS 27 bars inside an older system. Fine for most apps; tell the user when the target is below 26. - If the app already has these foundation files (
lib/core/theme/app_text.dart, …), extend them; never add a second copy.
2. Foundation
flutter pub add liquid_glass_widgets— 1.15 or newer (needs Flutter ≥ 3.41). On 1.14 usereferences/legacy-1.14.md. 2.0 removesGlassCardand makessolidthe default surface of list sections: before moving to it, check the rules here against its changelog.Copy the templates from this skill's
assets/core/intolib/core/(cp -R <skill-dir>/assets/core/. lib/core/). Check for name clashes first and merge instead of overwriting.File What it gives theme/app_colors.dartiOS 26/27 tints with their Increase Contrast variants, accent,yellowTexttheme/app_text.dartApple's text ramp with SF Pro tracking, .tabulartheme/app_theme.dartCupertinoThemeDataand the iOS 27 glass materialwidgets/app_shell.dartAppShell+ShellTab(tab root with glass bars, large titles, scroll edge, status-bar tap to top),TabPage(a tab's scrolling page)widgets/app_background.dartthe tinted wash behind the glass widgets/app_layout.dartgutters, max content width, insets for the floating bars widgets/content_card.dartContentCard(opaque, continuous corners),CapsuleProgresswidgets/grouped_section.dartGroupedSection,GroupedRow,RowIcon(inset grouped lists)widgets/glass_pill_button.dartcapsule glass button, tinted = prominent; a label too long shrinks to fit, widthForsizes a pair to its longest labelwidgets/app_sheet.dartshowAppSheet(dense glass sheet),SheetHeader(✕ title ✓)widgets/scroll_edge_bar.dartiOS 27 hard scroll edge widgets/progress_ring.dartFitness-style ring that laps past 100 %, with a spoken summary The templates already follow Reduce Motion, Increase Contrast and accessibility text sizes; keep that when changing them.
- Set
AppColors.accentto the brand color if the app has one (blue otherwise). - Bootstrap:
await LiquidGlassWidgets.initialize()inmain(),LiquidGlassWidgets.wrap(theme: AppTheme.glass, child: …)above the app,CupertinoApp(theme: AppTheme.cupertino)(references/screens.md§1).
3. Structure
- Tab app:
AppShellwith oneShellTabper tab; each tab's page is aTabPage. - Single-stack app or pushed screens:
GlassScaffold+GlassAppBar.pinned(references/screens.md§8). - Existing Material app: follow
references/migrate-material.md(order of work, widget mapping, go_router). - Bar items that morph between pushed routes: the package's
GlassNavigationShell; a tab bar that shrinks to the selected tab on scroll:GlassTabBar.minimizable. The foundation code uses neither yet — take the API from the package guide and look at the result on the simulator.
4. Screens
Build each screen from references/screens.md: hero / dashboard, info cards, settings, lists
with swipe to delete and empty states, forms in sheets, detail screens, onboarding and other
full-screen moments, alerts, charts, text input. Use the template widgets first; reach for other
Glass* widgets only for what they don't cover, and take their API from the package guide.
Numbers for anything new are in references/tokens.md.
5. Verify on screen
Glass shows its problems only when rendered, so analysis alone doesn't finish the job.
flutter analyzeclean, andbash <skill-dir>/scripts/check_look.shbreaks no rule (it greps for Material leftovers, unresolved dynamic colors, raw font sizes, circular corners, glass content, the wrong theme and ungated debug switches; look at each warning).- Run on an iOS 26+ simulator and look at every changed screen in light and dark:
xcrun simctl io booted screenshot s.png,xcrun simctl ui booted appearance dark. Downscale before reading (sips -Z 1000 s.png --out s_small.png). A debug build launched withoutflutter runcan stay blank for up to about 10 s; wait 12 s before capturing. simctlcan't tap. To open a screen without tapping, write its name into the app's temp folder before launching (echo settings > "$(xcrun simctl get_app_container booted <bundle-id> data)/tmp/shot") and readFile('${Directory.systemTemp.path}/shot')in a debug-only switch that selects the tab, opens the sheet or scrolls. Environment variables viaSIMCTL_CHILD_*did not reachPlatform.environmentin a Flutter debug build. Remove the switch, or keep it behindkDebugMode, before finishing. If the Dart and Flutter MCP server is connected, its app-driving tools (launch, tap, scroll, widget tree) can replace the switch; they need a driver-enabled entry point.- Accessibility pass on the changed screens: the largest text size
(
xcrun simctl ui booted content_size accessibility-extra-extra-extra-large, back withlarge), Increase Contrast (xcrun simctl ui booted increase_contrast enabled, thendisabled), Reduce Motion and Reduce Transparency in the simulator's Settings → Accessibility, and VoiceOver through Accessibility Inspector (Xcode → Open Developer Tool) on new controls, rings and charts. Nothing may clip, overlap or go unlabelled. - Without a Mac, an Android emulator shows the same layout:
adb exec-out screencap -p > s.png,adb shell cmd uimode night yes,adb shell settings put system font_scale 2.0. - If the project has a screenshot tour script, use it.
- Go through the checklist at the end. When restyling an existing app, show the user before and after screenshots.
Review without changing
When the user asks for a review or audit, don't edit. Run flutter analyze and
scripts/check_look.sh, capture the screens in light, dark and at the largest text size, then
report findings grouped by area — glass and material, color and type, layout and bars,
accessibility, native behavior — each ranked P0 (unreadable, broken, content hidden under
glass) to P3 (polish), with file:line and the rule from this skill it breaks. Offer the fixes
afterwards.
Rules
- Glass is for what you touch. Content is
ContentCard/GroupedSection, never a glass card. Inside opaque rows, glass controls bring their own layer:GlassSwitch(useOwnLayer: true). - Never nest glass in glass (a glass button in a glass card): double refraction, clipped animations, wasted GPU.
- Colors come from
AppColors(tints) andCupertinoColors(labels, fills, backgrounds, separators), resolved with the context before any.withValues(alpha:); unresolved dynamic colors give dark mode the light color. - Text goes through
AppText; anything that changes in place uses.tabular. - Corners are continuous:
RoundedSuperellipseBorderfor content,LiquidRoundedSuperellipsefor glass. A plainBorderRadiuson a card is the circular arc that gives Flutter UIs away. - No Material leftovers: ripples, elevation, Roboto metrics,
Icons.*. - Layout: content starts at
AppLayout.topInsetand ends atAppLayout.bottomInset, so nothing hides under the bars;AppLayout.guttercenters content at 640 pt on iPad and Mac. - Accessibility: 44 × 44 pt targets; a semantic label on every icon-only button and switch;
a spoken summary on rings (
ProgressRing(semanticsLabel:)) and charts (Semantics); layouts that survive accessibility text sizes. Your own motion and translucency follow Reduce Motion (MediaQuery.disableAnimationsOf) and Increase Contrast (MediaQuery.highContrastOf), as the templates do; the package handles its glass widgets itself. - Sheets and alerts:
showAppSheet+SheetHeaderandGlassDialog.show, never Material bottom sheets orAlertDialog. - Fonts: never bundle SF Pro (Apple's license limits it to Apple platforms); the system provides it on iOS and macOS, and other platforms fall back to their own font.
Pitfalls already hit
GlassThemeData.ios27()(1.15, unchanged in 1.16) is not the theme to use. It also sets premium quality on every glass widget, which draws buttons in the screen's shared glass layer: a tinted button turns pale, neighbouring buttons melt together, and buttons from other tabs of anIndexedStackshow through on the current one.AppTheme.glasstakes the same iOS 27 settings without the quality override.- The package's soft scroll edge doesn't cover the navigation bar;
AppShellsetsedgeFade: falseand drawsScrollEdgeBarinstead. - The status-bar tap scrolls the
PrimaryScrollControllerfound aboveGlassScaffold(it builds aCupertinoPageScaffold). Pages with their own controller never get it unless one is provided there;AppShellprovides the current tab's, and wraps the body inPrimaryScrollController.noneso nested lists don't attach to it too. GlassTabBar(1.16) doesn't report a finger tap on the tab that is already selected — only VoiceOver activation arrives inonTabSelected— so tap-again-to-scroll-up isn't possible yet.- API names that are easy to get wrong:
GlassButtonusesonTap,GlassIconButtonusesonPressed,GlassAppBartakesactions:(a list, notrailing),GlassChip.labelis aString,GlassBottomBarno longer exists (GlassTabBar.bottom). - With a
MaterialApproot,LiquidGlassWidgets.wrapneedsbrightnessResolver: Theme.maybeBrightnessOf. - A swiped-away
Dismissiblemust leave the tree insideonDismissed, or Flutter throws. - Apps built with the iOS 27 SDK crash at launch without UIScene adoption
(
_UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption): Info.plist needsUIApplicationSceneManifest. Flutter migrates an unmodifiedAppDelegateitself; with a customized one, register plugins indidInitializeImplicitFlutterEngine.
Other platforms
The look works beyond Apple platforms: the glass renders on Android, Windows and the web
(initialize() skips preloading the heaviest shaders on Windows, Linux and web). Text falls back
to the platform font, haptics do nothing on desktop, and wide windows are handled by
AppLayout.gutter. Desktop shortcuts use ⌘ on macOS and Ctrl elsewhere
(SingleActivator(key, meta: Platform.isMacOS, control: !Platform.isMacOS)).
Performance
Glass costs GPU, and the simulator says nothing about frame rate. Measure on devices: a profile
build (flutter run --profile) on the oldest supported iPhone and on a mid-range Android,
scrolling under the bars with showPerformanceOverlay: true, or a timeline from an integration
test's traceAction. If frames drop: LiquidGlassWidgets.wrap(adaptiveQuality: true) lets the
package lower quality on slow devices, GlassQuality.minimal suits glass in dense lists, and
premium stays on the bars, where GlassScaffold puts it.
Package API
For exact parameters, read the guide that ships with the installed version. Find the package
folder from .dart_tool/package_config.json (works with FVM and a custom PUB_CACHE):
python3 -c "import json; print(next(p['rootUri'] for p in json.load(open('.dart_tool/package_config.json'))['packages'] if p['name'] == 'liquid_glass_widgets'))"then read <root>/skills/liquid-glass-widgets/SKILL.md and <root>/CHANGELOG.md. Follow it on
API names, and this skill on the look. Where they differ on purpose:
- Theme. Its examples use
GlassThemeData.simple(…); this skill usesAppTheme.glass, the iOS 27 settings withoutios27()'s premium override. - Content cards. Both keep content opaque now. Its
GlassContainer.card/GlassGroupedSection(surfaceStyle: GlassSurfaceStyle.solid)is nearly the same card (#FFFFFF / #1C1C1E, 26 pt continuous corners); this skill keepsContentCard/GroupedSectionbecauseGroupedRow,RowIconand the sheets are built on them. Don't mix both in one list. - Lists and pickers. It says not to hand-roll
Dismissibleor date pickers;references/screens.md§6–7 still use them withGroupedRow, whose metrics the package'sGlassListTiledoesn't match. For a new list,GlassListTilewithtrailingSwipeActionsin a solidGlassGroupedSectionis a fine choice — compare screenshots with the rest of the app first.
Done checklist
flutter analyzeis clean;scripts/check_look.shbreaks no rule.- Every changed screen was looked at in light and dark mode on a simulator.
- …and at the largest accessibility text size and with Increase Contrast; rings and charts speak a summary in VoiceOver.
- Glass only on bars, buttons, switches, sheets and dialogs; content is opaque.
- No
package:flutter/material.dartimports left, or a short deliberate list. - Colors come from
AppColors/CupertinoColors, resolved; text fromAppText; live numbers are tabular. - Content clears the navigation bar and the tab bar; nothing sits under glass by accident.
- Touch targets are at least 44 pt; icon-only buttons and switches have semantic labels.
- On iPad / Mac widths, content stays at 640 pt and centered.
- Verification switches are removed or debug-only.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

