cached_network_lottie 0.0.1 copy "cached_network_lottie: ^0.0.1" to clipboard
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,
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
0
downloads

Publisher

verified publisherblossomdiary.com

Weekly Downloads

Cached network Lottie widget with image asset caching support.

Repository (GitHub)
View/report issues

Topics

#lottie #cache #flutter #animation

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_cache_manager, lottie

More

Packages that depend on cached_network_lottie