biocarl / drawing_animation

A Flutter library for gradually painting SVG path objects on canvas (drawing line animation).
https://pub.dartlang.org/packages/drawing_animation
BSD 2-Clause "Simplified" License
488 stars 123 forks source link

Unsupported operation: Only hex color format currently supported. String: url(#a) #31

Open milindgoel15 opened 1 year ago

milindgoel15 commented 1 year ago
E/flutter (28747): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: Only hex color format currently supported. String:  url(#a)
E/flutter (28747): #0      SvgParser.parseColor
parser.dart:28
E/flutter (28747): #1      SvgParser.loadFromString.<anonymous closure>
parser.dart:91
E/flutter (28747): #2      Iterable.forEach (dart:core/iterable.dart:347:35)
E/flutter (28747): #3      SvgParser.loadFromString
parser.dart:63
E/flutter (28747): #4      SvgParser.loadFromFile
parser.dart:124
E/flutter (28747): <asynchronous suspension>

Throws an exception if the animated svg contains URL in the stroke. The SVG is animated but the package fails.