RepositoryDartBEBỉ
xvrh

xvrh/lottie-flutter

Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.

1.3ksao
243fork
132issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: lottie-android

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: flutter-widget

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: lottie-animation

#1 Repository của tuần

🎬 Lottie cho Flutter — Chơi animation After Effects trên mọi nền tảng

Bản chuyển đổi pure Dart của thư viện Lottie-android, render animation Adobe After Effects xuất ra JSON bằng Bodymovin trên Flutter một cách bản địa.

lottie-flutter là một gói pure Dart hỗ trợ parse và render các animation After Effects dưới dạng JSON trên Flutter. Dự án được chuyển đổi từ Lottie-android và hỗ trợ chạy trên Android, iOS, macOS, Linux, Windows và Web.

✨ Điểm nổi bật

  • Render bản địa: Hỗ trợ render animation trực tiếp trên nền tảng Flutter không cần phụ thuộc nền tảng.
  • Đa nền tảng: Hoạt động trên Android, iOS, macOS, Linux, Windows và Web.
  • Tải và cache tự động: Các constructor như Lottie.asset, Lottie.network, Lottie.memory hỗ trợ tải, parse và cache JSON tự động.
  • Điều khiển hoàn toàn: Hỗ trợ cung cấp AnimationController tùy chỉnh để điều khiểm phát, dừng, lặp hoặc chạy ngược animation.
  • Tải composition riêng: Sử dụng AssetLottie, NetworkLottie, MemoryLottie để tải và parse composition trước khi render.
  • Vẽ tùy chỉnh: Hỗ trợ vẽ LottieComposition lên Canvas bằng CustomPainter để tích hợp vào bất kỳ giao diện nào.
  • API giống Image: Widget Lottie hỗ trợ các tham số width, height, fit giống widget Image.
  • Hỗ trợ file nén: Có thể tải animation kèm hình ảnh từ file zip.

💡 Vì sao đáng chú ý

Khác với các giải pháp dùng native engine, lottie-flutter thực hiện toàn bộ logic bằng Dart thuần, giúp dự án nhẹ và nhất quán trên cả mobile và web. Điều này đặc biệt hữu ích khi cần đưa animation phong phú vào ứng dụng Flutter mà không muốn thêm dependency nền tảng. Phù hợp cho các ứng dụng đa nền tảng muốn giữ hiệu năng và trải nghiệm người dùng mượt mà.


#Lottie #Flutter #Dart #Animation #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryDart
CarGuo/gsy_github_app_flutter

Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp 系列的优势:我们目前已经拥有 Flutter、Weex、ReactNative、Kotlin View、Kotlin Jetpack Compose ,Compose MultiPlatform,Harmony ArkUI 七个版本,功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。

15.5k
Oct 25, 2026
RepositoryDart
localsend/localsend

An open-source cross-platform alternative to AirDrop

101.9k
Dec 2, 2026
RepositoryKotlin
omarsahl/Flopsy

A cute little bunny animation that responds to text field interactions.

262
Jun 13, 2018
RepositoryC++
Aghajari/AXrLottie

AXrLottie (Android) Renders animations and vectors exported in the bodymovin JSON format. (Using rLottie)

150
Nov 10, 2022
RepositoryDart
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

181.5k
Nov 28, 2026
RepositoryDart
iampawan/FlutterExampleApps

[Example APPS] Basic Flutter apps, for flutter devs.

21.5k
Aug 9, 2024
RepositoryDart
cfug/dio

A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.

12.8k
Nov 22, 2026
RepositoryDart
felangel/bloc

A predictable state management library for Dart

12.5k
Dec 1, 2026
RepositoryDart
flame-engine/flame

A Flutter based game engine.

10.8k
Dec 2, 2026