Open tinyjin opened 3 months ago
When the canvas size is bigger than animation has, image is resized like Boxfit.fill. This issue causes different size from lottie-flutter.
Boxfit.fill
lottie-flutter
Step 1. Must ensure the default rendering result is Boxfit.none.
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 )
When the canvas size is bigger than animation has, image is resized like
Boxfit.fill
. This issue causes different size fromlottie-flutter
.Step 1. Must ensure the default rendering result is![Screenshot 2024-03-14 at 9 58 45 PM](https://github.com/tinyjin/lottie-thorvg/assets/11167117/9779b0e1-09d1-490f-9d99-0cfc88637bf5)
Boxfit.none
.Step 2. Should support 7 options on BoxFit enum: https://api.flutter.dev/flutter/painting/BoxFit.html
The parameter usage will be: