What problem does it solve?
WebF apps traditionally rely on SPA routing, which can lead to awkward navigation and poor back-stack management. This skill provides hybrid routing with native screen transitions, enabling multi-screen navigation that mimics native mobile apps.
Core Features & Use Cases
- Hybrid routing: Each route renders on a separate Flutter screen with native transitions.
- Framework compatibility: Works with React, Vue, and Svelte in WebF using the official router libraries.
- Data flow and deep linking: Pass route state between screens and read dynamic params.
- Common patterns: Protected routes, login redirects, and back-stack control for complex flows.
Quick Start
Install the router libraries and define your routes with a title on each Route. Then navigate programmatically using WebFRouter.pushState, WebFRouter.replaceState, or WebFRouter.back to move between screens. Access route state with useLocation and params with useParams to drive UI.