Skip to content

[Web] Unimplemented error on extractPath method #48386

@dharanidharandharmasivam

Description

I have used extractPath method from PathMetric to extract sub-paths and to draw a line, but on the web, it throws an unimplemented error.

Code Snippet:

for (final PathMetric measurePath in source.computeMetrics()) {
  double distance = intialValue;
  bool draw = true;
  while (distance < measurePath.length) {
    final double length = dashArray.next;
    if (draw) {
      path.addPath(measurePath.extractPath(distance, distance + length),
          Offset.zero);
    }
    distance += length;
    draw = !draw;
  }
}

Use the sample below to replicate the issue.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/dashed_line_web-1271151889

Steps to reproduce:

  1. Run the sample in an android device, a line with red-colored will be drawn as below.

Screenshot_20200108-065930

  1. Run the sample on the web, the line will not be drawn and on the debugger window, in the chrome browser, it throws an unimplemented error.

Metadata

Metadata

Assignees

Labels

a: imagesLoading, displaying, rendering imagesc: renderingUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions