flutter_app_cache_manager 1.0.1
flutter_app_cache_manager: ^1.0.1 copied to clipboard
A comprehensive Flutter cache manager package to cache images, videos, and other files.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'screens/cache_manager_demo_screen.dart';
/// The main function for the cache manager example.
void main() {
runApp(const CacheManagerExampleApp());
}
/// The main app for the cache manager example.
class CacheManagerExampleApp extends StatelessWidget {
/// Constructor for the [CacheManagerExampleApp] widget.
const CacheManagerExampleApp({super.key});
/// Builds the [CacheManagerExampleApp] widget.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Cache Manager Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
useMaterial3: true,
appBarTheme: const AppBarTheme(centerTitle: true, elevation: 2),
),
home: const CacheManagerDemoScreen(),
debugShowCheckedModeBanner: false,
);
}
}