Comments (4)
I was looking into it - it seems like you are not using my library but copied some parts of the code and you are now trying to adopt it for your purposes. For instance you are overwriting the stroke width and line-cap which will impact the margin properties of the bounding box. Sorry but that is not really related to my project;)
from drawing_animation.
The code I used:
@override
Widget build(BuildContext context) {
var x = '0' + 09924.toString();
return Scaffold(
body: Container(
margin: const EdgeInsets.all(24),
height: 250,
width: 250,
color: Colors.green,
child: KanjiViewer.svg(
"assets/vectors/" + x + ".svg",
run: this.run,
width: 200,
height: 200,
lineAnimation: LineAnimation.oneByOne,
duration: new Duration(seconds: 3),
onFinish: () => setState(() {
this.run = false;
}),
),
),
);
}
from drawing_animation.
I'm happy you like it! I also had some Hanzi character animation app in mind when I was creating the library. Before looking more into it, is the issued you resolved if you pass in the scaleToViewport
flag as false?
from drawing_animation.
Hi @biocarl I did but as you can see, it is still cropped. I tried with a bigger Container (the green area) with scaleToViewport = false
flag:
Code:
Container(
width: 400,
height: 400,
alignment: Alignment.center,
padding: const EdgeInsets.all(6),
color: Colors.green,
child: KanjiViewer.svg(
"assets/vectors/" + x + ".svg",
controller: _controller,
scaleToViewport: false,
width: ,
lineAnimation: LineAnimation.oneByOne,
duration: new Duration(seconds: 3)
),
),
from drawing_animation.
Related Issues (18)
- Trouble with colors HOT 3
- 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
- callback while rendering a path HOT 1
- Problem with colors HOT 3
- Implement complete SVG parsing HOT 1
- 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.