tinyjin / lottie-thorvg Goto Github PK
View Code? Open in Web Editor NEWFast and compact Lottie for Flutter using ThorVG as a renderer. (beta)
Home Page: https://pub.dev/packages/lottie_thorvg
License: MIT License
Fast and compact Lottie for Flutter using ThorVG as a renderer. (beta)
Home Page: https://pub.dev/packages/lottie_thorvg
License: MIT License
Installation bug from building with iOS Simulator hosted by M1 (SoC)
Probably, dylib
for ios-sim on arm64 is missing.
Launching lib/main.dart on iPhone 15 Pro in debug mode...
Running pod install... 1,252ms
Running Xcode build...
└─Compiling, linking and signing... 10.4s
Xcode build done. 35.3s
Failed to build iOS app
Error (Xcode): Building for 'iOS-simulator', but linking in dylib
(../ios/Frameworks/libthorvg.dylib) built for 'iOS'
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.
To enhance library's stability, automated testing such as unit test, building and analyze is strongly required.
Here are current supported platforms:
These are test cases we basically need:
Once it's ready, we can integrate these changes and ensure they are applied consistently with each major update through the GitHub action.
When the canvas size is bigger than animation has, image is resized like Boxfit.fill
.
This issue causes different size from lottie-flutter
.
Step 1. Must ensure the default rendering result is Boxfit.none
.
Step 2. Should support 7 options on BoxFit enum:
https://api.flutter.dev/flutter/painting/BoxFit.html
The parameter usage will be:
Lottie.asset(
'assets/path/to/lottie.json',
width: 300,
height: 300,
fit: BoxFit.cover
)
Hey there! 👋
The Dart document (https://dart.dev/guides/libraries/create-library-packages) recommends that the main library file for a package should be named lib/<package-name>.dart
. However, the current entry point file for the lottie-thorvg package is named lottiel.dart
, which deviates from the recommended naming convention.
For consistency with the guidelines and better discoverability, it might be worth considering renaming the lottiel.dart
file to lottie-thorvg.dart
.
Thank you!
ui.decodeImageFromPixels
returns image on white background, it's currently forced by Impeller renderer which is new and default engine from iOS/Flutter v3.10
.
(It could effect to android/impeller build. currently no effect because skia is still default for android)
To resolve this issue, the only way for now is turning off Impeller by editing Info.plist
.
<key>FLTEnableImpeller</key>
<true/>
Wonder anybody knows about this issue and handles it with flutter team.
Probably, should be fixed by Impeller side in next flutter release.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.