[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72TQDBCWN3T5SCNRASKRPMM":3,"skill-same:01M72TQDBCWN3T5SCNRASKRPMM":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M72TQDBCWN3T5SCNRASKRPMM","flutter-glass-ui",null,"Use when building glassmorphism UIs in Flutter apps.","iberi22\u002Fskills","iberi22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10615454?v=4","01M72SQ2NXAA3GW0FSH053A5ES","Brahyan Belalcazar","01M72SQ2PYCH0SSA1K61NGEHDV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fflutter-glass-ui\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: flutter-glass-ui\ndescription: Use when building glassmorphism UIs in Flutter apps.\nversion: 1.0.0\nauthor: Hermes Agent\nlicense: MIT\nplatforms:\n- linux\n- macos\n- windows\n- android\n- ios\nmetadata:\n  hermes:\n    tags:\n    - flutter\n    - glassmorphism\n    - cupertino\n    - ui\n    - design\n    - macos\n    related_skills:\n    - flutter-development\n---\n\n# Flutter Glass UI (Glassmorphism + Apple-style)\n\n## Verdict (verified 2026-09-06, L2 research)\n\nBuilding iPhone\u002FMac-inspired glass UIs in Flutter is VIABLE with zero extra\npackages. The look is 90% achievable; true iOS-26 Liquid Glass refraction\nis NOT (no refraction shader in Flutter core — approximate with gradients\n+ inner highlights). Hand-roll the glass card: packages (`glassmorphism`,\n`glass_kit`, `glassmorphic_ui_kit`) are thin wrappers over the same\n`BackdropFilter` and add dependency weight for nothing.\n\n## When to Use\n\n- Glassmorphic cards, sidebars,一晚 floating panels, control-center style sheets\n- iPhone-style apps on any platform (Cupertino widgets, SF-like type)\n- macOS-style desktop windows (sidebar + toolbar + inspector)\n- Deciding Cupertino vs Material vs `macos_ui` for a new screen\n\n## Glass Card Recipe (copy-paste)\n\n```dart\nimport 'dart:ui';\nimport 'package:flutter\u002Fmaterial.dart';\n\nclass GlassCard extends StatelessWidget {\n  final Widget child;\n  final double radius;\n  final double sigma;\n  const GlassCard({\n    super.key,\n    required this.child,\n    this.radius = 20,\n    this.sigma = 14,\n  });\n\n  @override\n  Widget build(BuildContext context) {\n    final scheme = Theme.of(context).colorScheme;\n    return ClipRRect(\n      borderRadius: BorderRadius.circular(radius),\n      child: BackdropFilter(\n        filter: ImageFilter.blur(sigmaX: sigma, sigmaY: sigma),\n        child: Container(\n          decoration: BoxDecoration(\n            borderRadius: BorderRadius.circular(radius),\n            \u002F\u002F translucent fill: white 8-14% (dark bg) \u002F 40-60% (light bg)\n            gradient: LinearGradient(\n              begin: Alignment.topLeft,\n              end: Alignment.bottomRight,\n              colors: [\n                Colors.white.withValues(alpha: 0.14),\n                Colors.white.withValues(alpha: 0.06),\n              ],\n            ),\n            border: Border.all(\n              color: Colors.white.withValues(alpha: 0.22),\n              width: 1,\n            ),\n            boxShadow: [\n              BoxShadow(\n                color: Colors.black.withValues(alpha: 0.25),\n                blurRadius: 24,\n                offset: const Offset(0, 8),\n              ),\n            ],\n          ),\n          child: child,\n        ),\n      ),\n    );\n  }\n}\n```\n\nRules: sigma 10-20 (above 24 looks milky and costs GPU); top highlight\nvia a 1px inner `Border(top: ...white 30%)` sells the glass edge;\nanimate OPACITY\u002Fposition, never sigma per-frame.\n\n## Apple-style Mapping\n\n| Apple pattern | Flutter implementation |\n|---|---|\n| Frosted nav bar \u002F tab bar | `CupertinoNavigationBar` \u002F `CupertinoTabBar` (built-in blur) |\n| Grouped lists, cards | `CupertinoListSection` + GlassCard |\n| Action sheets, popovers | `showCupertinoModalPopup` \u002F `CupertinoPopover` |\n| Segmented control, switches | `CupertinoSegmentedControl`, `CupertinoSwitch`, `CupertinoSlider` |\n| macOS sidebar+toolbar+inspector | `macos_ui` package (`MacosWindow`, `Sidebar`, `ToolBar`) |\n| SF font on Linux | NOT available — use Inter (closest metrics) via `google_fonts` or bundled TTF |\n| SF Symbols | NOT available — use `cupertino_icons` + custom SVGs |\n\n`macos_ui` renders on Linux too, but its value is macOS fidelity; on\nHyprland\u002FGNOME prefer Cupertino + custom glass (native feel comes from\nthe compositor, not the widget set).\n\n## Linux Transparency (glass over the real desktop)\n\n1. `window_manager`: `await windowManager.setBackgroundColor(Colors.transparent)`\n   (+ `setAsFrameless()` for borderless floating panels).\n2. Scaffold background MUST be transparent too (`backgroundColor:\n   Colors.transparent`), else the blur samples an opaque canvas.\n3. Hyprland bonus: compositor-side blur behind transparent windows via\n   `layerrule = blur, \u003Cclass>` — real desktop glass for free.\n4. Verify visually (grim screenshot) — no unit test can assert blur.\n\n## Performance Rules (Impeller\u002FSkia, AMD iGPU class hardware)\n\n- Bound blur regions: small cards, never fullscreen sheets.\n- NEVER nest `BackdropFilter` (cost multiplies per layer).\n- One shared sigma per screen; reuse the GlassCard widget.\n- Animate opacity\u002Foffset\u002Fscale; animating sigma re-rasterizes every frame.\n- Profile on the target GPU (`flutter run --profile` + DevTools shader tab);\n  first-run jank = shader compilation, warms up after 1-2 presentations.\n\n## Accessibility\n\n- Text on glass needs contrast: dark scrim (`black 20-35%`) behind labels\n  or `MediaQuery.highContrast` fallback to solid surfaces.\n- Honor reduced motion: `MediaQuery.disableAnimations` → skip parallax\u002F\n  spring entrances, show final state.\n\n## Viability Checklist (run before committing to the style)\n\n1. Target GPU renders 2-3 simultaneous blurred cards at 60fps in profile mode?\n2. Transparent window works under the target compositor (Hyprland: yes +\n   layerrule blur; GNOME: yes via RGBA visual; tiling WMs may force opaque)?\n3. Fonts\u002Ficons licensed for the platform (Inter + cupertino_icons on Linux)?\n4. Contrast ratios pass on real wallpapers (test 3 light + 3 dark)?\n5. No fullscreen blur anywhere in the design?\n\nIf any answer is no, scope glass to accents (nav bars, chips, dialogs)\nand keep content surfaces solid.\n\n## References\n\n- [Glassmorphism effects in Flutter (Vibe Studio)](https:\u002F\u002Fvibe-studio.ai\u002Finsights\u002Fimplementing-glassmorphism-effects-in-flutter-uis)\n- [Glassmorphic UI packages (Flutter Gems)](https:\u002F\u002Ffluttergems.dev\u002Fglassmorphic-ui\u002F)\n- [macos_ui first app codelab](https:\u002F\u002Fmacosui.dev\u002Fdocs\u002Fgetting_started\u002Ffirst_app)\n- [Cupertino design docs](https:\u002F\u002Fdocs.flutter.dev\u002Fui\u002Fdesign\u002Fcupertino)\n","# Flutter Glass UI (Glassmorphism + Apple-style)\n\n## Verdict (verified 2026-09-06, L2 research)\n\nBuilding iPhone\u002FMac-inspired glass UIs in Flutter is VIABLE with zero extra\npackages. The look is 90% achievable; true iOS-26 Liquid Glass refraction\nis NOT (no refraction shader in Flutter core — approximate with gradients\n+ inner highlights). Hand-roll the glass card: packages (`glassmorphism`,\n`glass_kit`, `glassmorphic_ui_kit`) are thin wrappers over the same\n`BackdropFilter` and add dependency weight for nothing.\n\n## When to Use\n\n- Glassmorphic cards, sidebars,一晚 floating panels, control-center style sheets\n- iPhone-style apps on any platform (Cupertino widgets, SF-like type)\n- macOS-style desktop windows (sidebar + toolbar + inspector)\n- Deciding Cupertino vs Material vs `macos_ui` for a new screen\n\n## Glass Card Recipe (copy-paste)\n\n```dart\nimport 'dart:ui';\nimport 'package:flutter\u002Fmaterial.dart';\n\nclass GlassCard extends StatelessWidget {\n  final Widget child;\n  final double radius;\n  final double sigma;\n  const GlassCard({\n    super.key,\n    required this.child,\n    this.radius = 20,\n    this.sigma = 14,\n  });\n\n  @override\n  Widget build(BuildContext context) {\n    final scheme = Theme.of(context).colorScheme;\n    return ClipRRect(\n      borderRadius: BorderRadius.circular(radius),\n      child: BackdropFilter(\n        filter: ImageFilter.blur(sigmaX: sigma, sigmaY: sigma),\n        child: Container(\n          decoration: BoxDecoration(\n            borderRadius: BorderRadius.circular(radius),\n            \u002F\u002F translucent fill: white 8-14% (dark bg) \u002F 40-60% (light bg)\n            gradient: LinearGradient(\n              begin: Alignment.topLeft,\n              end: Alignment.bottomRight,\n              colors: [\n                Colors.white.withValues(alpha: 0.14),\n                Colors.white.withValues(alpha: 0.06),\n              ],\n            ),\n            border: Border.all(\n              color: Colors.white.withValues(alpha: 0.22),\n              width: 1,\n            ),\n            boxShadow: [\n              BoxShadow(\n                color: Colors.black.withValues(alpha: 0.25),\n                blurRadius: 24,\n                offset: const Offset(0, 8),\n              ),\n            ],\n          ),\n          child: child,\n        ),\n      ),\n    );\n  }\n}\n```\n\nRules: sigma 10-20 (above 24 looks milky and costs GPU); top highlight\nvia a 1px inner `Border(top: ...white 30%)` sells the glass edge;\nanimate OPACITY\u002Fposition, never sigma per-frame.\n\n## Apple-style Mapping\n\n| Apple pattern | Flutter implementation |\n|---|---|\n| Frosted nav bar \u002F tab bar | `CupertinoNavigationBar` \u002F `CupertinoTabBar` (built-in blur) |\n| Grouped lists, cards | `CupertinoListSection` + GlassCard |\n| Action sheets, popovers | `showCupertinoModalPopup` \u002F `CupertinoPopover` |\n| Segmented control, switches | `CupertinoSegmentedControl`, `CupertinoSwitch`, `CupertinoSlider` |\n| macOS sidebar+toolbar+inspector | `macos_ui` package (`MacosWindow`, `Sidebar`, `ToolBar`) |\n| SF font on Linux | NOT available — use Inter (closest metrics) via `google_fonts` or bundled TTF |\n| SF Symbols | NOT available — use `cupertino_icons` + custom SVGs |\n\n`macos_ui` renders on Linux too, but its value is macOS fidelity; on\nHyprland\u002FGNOME prefer Cupertino + custom glass (native feel comes from\nthe compositor, not the widget set).\n\n## Linux Transparency (glass over the real desktop)\n\n1. `window_manager`: `await windowManager.setBackgroundColor(Colors.transparent)`\n   (+ `setAsFrameless()` for borderless floating panels).\n2. Scaffold background MUST be transparent too (`backgroundColor:\n   Colors.transparent`), else the blur samples an opaque canvas.\n3. Hyprland bonus: compositor-side blur behind transparent windows via\n   `layerrule = blur, \u003Cclass>` — real desktop glass for free.\n4. Verify visually (grim screenshot) — no unit test can assert blur.\n\n## Performance Rules (Impeller\u002FSkia, AMD iGPU class hardware)\n\n- Bound blur regions: small cards, never fullscreen sheets.\n- NEVER nest `BackdropFilter` (cost multiplies per layer).\n- One shared sigma per screen; reuse the GlassCard widget.\n- Animate opacity\u002Foffset\u002Fscale; animating sigma re-rasterizes every frame.\n- Profile on the target GPU (`flutter run --profile` + DevTools shader tab);\n  first-run jank = shader compilation, warms up after 1-2 presentations.\n\n## Accessibility\n\n- Text on glass needs contrast: dark scrim (`black 20-35%`) behind labels\n  or `MediaQuery.highContrast` fallback to solid surfaces.\n- Honor reduced motion: `MediaQuery.disableAnimations` → skip parallax\u002F\n  spring entrances, show final state.\n\n## Viability Checklist (run before committing to the style)\n\n1. Target GPU renders 2-3 simultaneous blurred cards at 60fps in profile mode?\n2. Transparent window works under the target compositor (Hyprland: yes +\n   layerrule blur; GNOME: yes via RGBA visual; tiling WMs may force opaque)?\n3. Fonts\u002Ficons licensed for the platform (Inter + cupertino_icons on Linux)?\n4. Contrast ratios pass on real wallpapers (test 3 light + 3 dark)?\n5. No fullscreen blur anywhere in the design?\n\nIf any answer is no, scope glass to accents (nav bars, chips, dialogs)\nand keep content surfaces solid.\n\n## References\n\n- [Glassmorphism effects in Flutter (Vibe Studio)](https:\u002F\u002Fvibe-studio.ai\u002Finsights\u002Fimplementing-glassmorphism-effects-in-flutter-uis)\n- [Glassmorphic UI packages (Flutter Gems)](https:\u002F\u002Ffluttergems.dev\u002Fglassmorphic-ui\u002F)\n- [macos_ui first app codelab](https:\u002F\u002Fmacosui.dev\u002Fdocs\u002Fgetting_started\u002Ffirst_app)\n- [Cupertino design docs](https:\u002F\u002Fdocs.flutter.dev\u002Fui\u002Fdesign\u002Fcupertino)\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":37,"description":7},"Hermes Agent","1.0.0",{"hermes":27},{"tags":28,"related_skills":35},[29,30,31,32,33,34],"flutter","glassmorphism","cupertino","ui","design","macos",[36],"flutter-development",[38,34,39,40,41],"linux","windows","android","ios","main","688810f2886d212632acf81e532b24e483dd8b98","skills\u002Fsoftware-development\u002Fflutter-glass-ui","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills","https:\u002F\u002Fgithub.com\u002Fiberi22","Senior WEB Full-Stack","2026-10-12 02:46:21",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add iberi22\u002Fskills --skill flutter-glass-ui",{"tool":55,"command":56},"bunx","bunx skills add iberi22\u002Fskills --skill flutter-glass-ui",{"tool":58,"command":59},"pnpm","pnpm dlx skills add iberi22\u002Fskills --skill flutter-glass-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fflutter-glass-ui\u002FSKILL.md",true,[],[64,70,77,83,89,95],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M72TWQEQD46ZC9TRBAABF78P","web-design-guidelines","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M72TWMQFTYD08DGXVAXRPPEB","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall. Recovers the page via archives and provenance-checked fallbacks.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M72TVQMS3HCTX18C8T97WTQQ","studio-coach","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fstudio-coach\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M72TVNA2PR9RZW0ZAXYP1G6J","src-generator","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsrc-generator\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M72TVEJHHB6SAT3R3TY9MJKS","sqlite-pro","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsqlite-pro\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M72TVC2EVBHQHCX96VTTYKB8","rigor-evaluator","Use when you need a quick heuristic rigor score (10 criteria, 0-2 each) for the features in a .gitcore\u002Ffeatures.json file, to decide which features are ready to ship.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Frigor-evaluator\u002FSKILL.md",[],[]]