Skip to content

feat(lottie): add .lottie file ext support#2179

Merged
usmandevx merged 1 commit intomainfrom
fix/issue-2178-lottie-ext-support
Mar 26, 2026
Merged

feat(lottie): add .lottie file ext support#2179
usmandevx merged 1 commit intomainfrom
fix/issue-2178-lottie-ext-support

Conversation

@usmandevx
Copy link
Copy Markdown
Contributor

Summary

  • Add support for .lottie file extension in the Lottie widget
  • Introduce custom decoder to handle .lottie (zip-based) format
  • Maintain backward compatibility with existing .json animations

Key Changes

Lottie Support

  • Detect .lottie file extension in Lottie widget
  • Decode and extract animation data from .lottie files
  • Reuse existing rendering pipeline for playback

Compatibility

  • Ensure .json animations continue to work without changes
  • Handle invalid or unsupported .lottie files gracefully

Usage Example

- Lottie:
    testId: animation
    source: Router.lottie
    styles:
      width: 200
      height: 200

@usmandevx usmandevx requested a review from sharjeelyunus March 26, 2026 12:57
@usmandevx usmandevx self-assigned this Mar 26, 2026
@usmandevx usmandevx added the enhancement New feature or request label Mar 26, 2026
@usmandevx usmandevx changed the title feat(lottie): add custom Lottie decoder for .lottie file ext support feat(lottie): add .lottie file ext support Mar 26, 2026
@usmandevx usmandevx merged commit 2830ea9 into main Mar 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants