openwebf-host-hybrid-routing
Implement hybrid routing between Flutter and WebF using WebFSubView and go_router (route mapping and layouts). Use when the user mentions WebFSubView, go_router, hybrid routing, or mapping Flutter routes to WebF routes.
When & Why to Use This Skill
This Claude skill streamlines the implementation of hybrid routing between Flutter and WebF by leveraging WebFSubView and go_router. It automates the complex process of mapping Flutter routes to WebF paths, ensuring seamless navigation and consistent layout management across native and web-based components within a single application architecture.
Use Cases
- Scenario 1: Synchronizing navigation states between native Flutter screens and embedded WebF micro-frontends using go_router.
- Scenario 2: Implementing complex route mapping where specific Flutter URL patterns need to trigger and pass data to corresponding WebFSubView instances.
- Scenario 3: Rapidly scaffolding hybrid application layouts that require shared navigation headers or sidebars across both native and WebF content.
| name | openwebf-host-hybrid-routing |
|---|---|
| description | Implement hybrid routing between Flutter and WebF using WebFSubView and go_router (route mapping and layouts). Use when the user mentions WebFSubView, go_router, hybrid routing, or mapping Flutter routes to WebF routes. |
| allowed-tools | Read, Grep, Glob, Bash, Edit, Write, mcp__openwebf__project_profile, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__templates_get, mcp__openwebf__templates_render |
OpenWebF Host: Hybrid Routing (WebFSubView + go_router)
Instructions
- Detect whether the project uses
go_routerand whetherWebFSubViewexists (via project profile and code search). - Define the desired route mapping (Flutter path → WebF path) and layout responsibilities.
- Use MCP docs for recommended patterns and constraints.
- Offer the routing scaffold template when appropriate (
routing/go-router-webfsubview).
More: