lottie-flutter icon indicating copy to clipboard operation
lottie-flutter copied to clipboard

alignment not valid when fit use BoxFit.fitWidth

Open BFELFISH opened this issue 2 years ago • 2 comments

when the lottie height is more than mobile's height,and fit use BoxFit.fitWidth. I want the lottie play with bottomCenter,but It didn't paly as expected,the bottom of the lottie was palyed outside the screen

flutter doctor [√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19044.1645], locale zh-CN) • Flutter version 2.5.3 at D:\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 18116933e7 (6 months ago), 2021-10-15 10:46:35 -0700 • Engine revision d3ea636dc5 • Dart version 2.14.4 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn

lottie version is lottie: 1.2.2

BFELFISH avatar Apr 26 '22 10:04 BFELFISH

The same for me!

pirrest avatar May 05 '22 19:05 pirrest

The same for me!

I use Transform.translate for manual alignment

BFELFISH avatar May 07 '22 06:05 BFELFISH