플러터(Flutter)
플러터 로티파일 사용
xemaker
2024. 10. 25. 09:56
Lottie.asset('images/ani.json'),
// pubspec.yaml
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.8
lottie: ^3.1.3
assets:
- images/ani.json
// Load a Lottie file from your assets
Lottie.asset('assets/LottieLogo1.json'),
// Load a Lottie file from a remote url
Lottie.network('https://raw.github … bilo/A.json’),
// Load an animation and its images from a zip file
Lottie.asset('assets/lottiefiles/angel.zip'),
Lottie#파일:#
용도: 고품질 애니메이션을 쉽게 추가할 수 있는 형식.
특징: 애니메이션 GIF와 SVG의 장점을 결합한 파일 형식으로, Lottie
파일 웹사이트에서 다양한 애니메이션을 무료로 다운로드할 수 있음.
사용법: Lottie 플러그인을 사용해 간단히 애니메이션을 앱에 추가할 수 있음.
https://soongon.notion.site/Flutter-2024-10-23-121fb9b873ec80b89b69e765e24e46e9