Open
Description
Introduction
It would be great a DOM renderer into the Flutter framework for building websites. The primary goal is to expand Flutter's web capabilities by improving SEO, enabling server-side rendering, and ensuring compatibility with popular front-end tools such as Vite.
Related Issues
Issue #46789: Improve SEO for Flutter web apps
Issue #47600: Add support for server-side rendering in Flutter for web
Proposed Solution
The main idea is to introduce a new 'runPage' method that directly renders components to the DOM instead of Flutter's existing engine. Key aspects:
- New components library designed specifically for DOM rendering
- Support for Client-Side Rendering (CSR), Server-Side Rendering (SSR), Static Site Generation (SSG) and Incremental Static Regeneration (ISR)
- Hybrid rendering design for routes
- Widgets and dom elements interoperability support
- Compatibility with popular front-end tools