Skip to content

LinearGradient transform parameter not applied on web version #84245

@ErrApparent

Description

@ErrApparent

This works fine on Linux and Android builds (I'm assuming same for other desktop and device platforms), but the transform parameter does nothing in the web build.

Container(
      height: 200,
      width: 200,
      decoration: BoxDecoration(
          gradient: LinearGradient(
              colors: [Colors.red, Colors.blue],
              begin: Alignment(-1, -1),
              end: Alignment(1, 1),
              transform: GradientRotation(math.pi/4),
          )),
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.found in release: 2.2Found to occur in 2.2frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-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