flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

Support Lottie

Open HiroyukiTamura opened this issue 3 years ago • 1 comments

What does this change?

Support lottie. Related: #47

flutter_gen:

  integrations:
    lottie: true  # here
  • the file is distinguished by is in 'lottie' dir. https://github.com/HiroyukTamura/flutter_gen/blob/8175f15960733d5bd99ee694727027baa9756a59/lib/src/settings/asset_type.dart#L53-L54
  • updated example app and tests but not docs

What is the value of this and can you measure success?

Pass tests.

HiroyukiTamura avatar Dec 24 '20 20:12 HiroyukiTamura

It might be better to check if any json file contains the keys mentioned here: https://github.com/airbnb/lottie-web/blob/master/docs/json/animation.json Although, my lottie files don't contain the chars field.

britannio avatar Jan 29 '21 18:01 britannio

@HiroyukiTamura Thank you for your PR. I released v5.0.0 and v5.0.1. The version includes the Lottie file support.

wasabeef avatar Sep 29 '22 07:09 wasabeef