Skip to content

Add Flutter web renderer information to event #687

@ueman

Description

@ueman

One can detect wether Flutter for Web runs with the HTML renderer or the CanvasKit renderer like this:

import 'dart:js' as js;

final dynamic flutterCanvasKit = js.context['flutterCanvasKit'];
if(flutterCanvasKit != null){
// runs with CanvasKit renderer
}

This is especially helpful for bugs where the UI isn't renderer right.

Docs on the web renderer: https://docs.flutter.dev/development/tools/web-renderers

Since this issue is already quite old, the proposed solution above needs to be double-checked to see if it's still valid.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions