Skip to content

New DOM renderer for Flutter web #139292

Open
@mrgzi

Description

@mrgzi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions