cached_network_lottie 0.0.1
cached_network_lottie: ^0.0.1 copied to clipboard
Cached network Lottie widget with image asset caching support.
example/lib/main.dart
import 'package:cached_network_lottie/cached_network_lottie.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const CachedNetworkLottieExampleApp());
}
class CachedNetworkLottieExampleApp extends StatelessWidget {
const CachedNetworkLottieExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Cached Network Lottie Example',
home: Scaffold(
appBar: AppBar(title: const Text('Cached Lottie')),
body: const Center(
child: CachedNetworkLottie(
'https://assets10.lottiefiles.com/packages/lf20_nfbtru7n.json',
width: 220,
height: 220,
repeat: true,
),
),
),
);
}
}