openwebf-host-embedding-constraints

嵌入 WebF 时修复 Flutter 布局/约束问题(可滚动项、无界约束、视口大小)。当用户提及 ListView/ScrollView、"无界高度"、无限约束、RenderBox 错误或在屏幕部分嵌入 WebF 时使用。

📖 中文导读:嵌入 WebF 时修复 Flutter 布局/约束问题(可滚动项、无界约束、视口大小)。当用户提及 ListView/ScrollView、"无界高度"、无限约束、RenderBox 错误或在屏幕部分嵌入 WebF 时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: openwebf-host-embedding-constraints description: Fix Flutter layout/constraint issues when embedding WebF (scrollables, unbounded constraints, viewport sizing). Use when the user mentions ListView/ScrollView, “unbounded height”, infinite constraints, RenderBox errors, or embedding WebF in part of the screen. allowed-tools: Read, Grep, Glob, Bash, Edit, Write, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__docs_related

OpenWebF Host: Embedding & Constraints

Instructions

  1. Ask for the widget tree snippet that embeds WebF and the exact Flutter error.
  2. Identify whether WebF is inside a scrollable or an unconstrained parent.
  3. Recommend the minimal constraint fix (bounded height/width), preferring full-screen embedding when possible.
  4. Use MCP docs for official embedding guidance and common pitfalls.

More: