ajilo297 / Flutter-Dotted-Border

A Flutter package to easily add dashed borders around widgets
https://pub.dev/packages/dotted_border
MIT License
295 stars 63 forks source link

Flutter Web : Border is not coming #9

Closed VarmaTech closed 4 years ago

VarmaTech commented 4 years ago

DottedBorder( dashPattern: [6, 3, 2, 3], padding: EdgeInsets.all(6), color: Colors.black, strokeWidth: 1, child:Container()) Issue :


════════ Exception caught by rendering library ═════════════════════════════════
The following UnimplementedError was thrown during paint():
UnimplementedError

When the exception was thrown, this was the stack
throw_ (package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart:196:49)
extractPath (package:build_web_compilers/lib/_engine/engine/surface/path_metrics.dart:131:7)
dashPath
package:path_drawing/src/dash_path.dart:34
[_getPath]
package:dotted_border/dash_painter.dart:62
paint
package:dotted_border/dash_painter.dart:39
...
The following RenderObject was being processed when the exception was fired: RenderCustomPaint#332c2
RenderObject: RenderCustomPaint#332c2
    parentData: top=0.0; right=0.0; bottom=0.0; left=0.0; offset=Offset(0.0, 0.0) (can use size)
    constraints: BoxConstraints(w=777.0, h=369.0)
    size: Size(777.0, 369.0)
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
UnimplementedError
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by scheduler library ═════════════════════════════════
Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/bitmap_canvas.dart:593:12
_saveCount == 0
is not true
ajilo297 commented 4 years ago

With the latest version of Flutter on the master branch, I am not able to reproduce the issue. The plugin is working as expected. Please add a comment here if you are facing this issue in some other channel of Flutter.