Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Web] Unimplemented error on extractPath method #48386

Closed
dharanidharandharmasivam opened this issue Jan 8, 2020 · 2 comments
Closed

[Web] Unimplemented error on extractPath method #48386

dharanidharandharmasivam opened this issue Jan 8, 2020 · 2 comments
Assignees
Labels
a: images Loading, displaying, rendering images c: rendering UI glitches reported at the engine/skia rendering level engine flutter/engine repository. See also e: labels. platform-web Web applications specifically
Milestone

Comments

@dharanidharandharmasivam
Copy link

dharanidharandharmasivam commented Jan 8, 2020

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.
@dharanidharandharmasivam dharanidharandharmasivam changed the title [Web] Dash array doesn't work on web [Web] Unimplemented error on extractPath method Jan 8, 2020
@iapicca iapicca added engine flutter/engine repository. See also e: labels. c: rendering UI glitches reported at the engine/skia rendering level platform-web Web applications specifically a: images Loading, displaying, rendering images labels Jan 8, 2020
@yjbanov yjbanov added this to the January 2020 milestone Jan 9, 2020
@ferhatb ferhatb modified the milestones: January 2020, February 2020 Feb 4, 2020
@ferhatb
Copy link
Contributor

ferhatb commented Feb 21, 2020

In master now.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: images Loading, displaying, rendering images c: rendering UI glitches reported at the engine/skia rendering level engine flutter/engine repository. See also e: labels. platform-web Web applications specifically
Projects
None yet
Development

No branches or pull requests

4 participants