Bỉxvrh/lottie-flutter
Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#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.memoryhỗ trợ tải, parse và cache JSON tự động. - Điều khiển hoàn toàn: Hỗ trợ cung cấp
AnimationControllertù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ẽ
LottieCompositionlên Canvas bằngCustomPainterđể tích hợp vào bất kỳ giao diện nào. - API giống Image: Widget
Lottiehỗ trợ các tham sốwidth,height,fitgiống widgetImage. - 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.
Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp 系列的优势:我们目前已经拥有 Flutter、Weex、ReactNative、Kotlin View、Kotlin Jetpack Compose ,Compose MultiPlatform,Harmony ArkUI 七个版本,功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。
A cute little bunny animation that responds to text field interactions.
AXrLottie (Android) Renders animations and vectors exported in the bodymovin JSON format. (Using rLottie)
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
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.