Comments (3)
Hey @ma-rp,
Can you send me the SVG you have trouble with? It might be a parsing problem. For now only hex color codes are supported. Meaning stroke=white
or stroke=rgb(255,255,255)
are not supported. The latter I probably will add this week.
from drawing_animation.
Thanks for the fast reply!
I figured out how to make it work; I was using the AnimatedDrawing inside a Container without any luck, and what did the trick was to set a the color of the container to transparent.
Here's the SVF that I'm using if you are still interested.
Thanks again!
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.0"
width="645"
height="585"
id="svg2">
<path fill="none" stroke="#ff0000"
d="M 297.29747,550.86823 C 283.52243,535.43191 249.1268,505.33855 220.86277,483.99412 C 137.11867,420.75228 125.72108,411.5999 91.719238,380.29088 C 29.03471,322.57071 2.413622,264.58086 2.5048478,185.95124 C 2.5493594,147.56739 5.1656152,132.77929 15.914734,110.15398 C 34.151433,71.768267 61.014996,43.244667 95.360052,25.799457 C 119.68545,13.443675 131.6827,7.9542046 172.30448,7.7296236 C 214.79777,7.4947896 223.74311,12.449347 248.73919,26.181459 C 279.1637,42.895777 310.47909,78.617167 316.95242,103.99205 L 320.95052,119.66445 L 330.81015,98.079942 C 386.52632,-23.892986 564.40851,-22.06811 626.31244,101.11153 C 645.95011,140.18758 648.10608,223.6247 630.69256,270.6244 C 607.97729,331.93377 565.31255,378.67493 466.68622,450.30098 C 402.0054,497.27462 328.80148,568.34684 323.70555,578.32901 C 317.79007,589.91654 323.42339,580.14491 297.29747,550.86823 z"/>
</svg>
from drawing_animation.
Happy to hear that you got it working 👍
from drawing_animation.
Related Issues (20)
- Please publish to pub.dev the new version HOT 1
- Is it possible to use it as progress bar? HOT 1
- Loading SVG via network not possible HOT 2
- Upgrade to null safety HOT 1
- Unhandled Exception: NoSuchMethodError: The getter 'isNotEmpty' was called on null.
- NoSuchMethodError: The getter 'isNotEmpty' was called on null HOT 4
- Add null safety support HOT 3
- version solving failed HOT 2
- Can i get at any point or continues path value and time.
- Build getting failed with Flutter version 2.10.2
- Only hex color format currently supported HOT 1
- callback while rendering a path HOT 1
- Unsupported operation: Only hex color format currently supported. String: url(#a)
- Update needed! HOT 1
- Problem with colors HOT 3
- Implement complete SVG parsing HOT 1
- SVG being cropped HOT 4
- Missing support for flutter for web HOT 1
- Erase animation for SVGs HOT 2
- update to newer "xml" dep version to be compatible with flutter 1.20 and flutter-svg 0.18.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawing_animation.