data_cache_x 1.0.0 copy "data_cache_x: ^1.0.0" to clipboard
data_cache_x: ^1.0.0 copied to clipboard

A Flutter package for efficient offline data caching and synchronization with enhanced security features and tag-based cache management.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'core/di/service_locator.dart';
import 'core/theme/app_theme.dart';
import 'features/analytics/presentation/pages/analytics_page.dart';
import 'features/explorer/presentation/pages/explorer_page.dart';
import 'features/gallery/presentation/pages/gallery_page.dart';
import 'features/home/presentation/pages/home_page.dart';
import 'features/news/presentation/pages/news_page.dart';
import 'features/playground/presentation/pages/playground_page.dart';
import 'features/settings/presentation/pages/settings_page.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Initialize the service locator
  await setupServiceLocator();

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'CacheHub',
      debugShowCheckedModeBanner: false,
      theme: AppTheme.lightTheme,
      darkTheme: AppTheme.darkTheme,
      themeMode: ThemeMode.system,
      initialRoute: '/',
      routes: {
        '/': (context) => const HomePage(),
        '/news': (context) => const NewsPage(),
        '/gallery': (context) => const GalleryPage(),
        '/analytics': (context) => const AnalyticsPage(),
        '/explorer': (context) => const ExplorerPage(),
        '/playground': (context) => const PlaygroundPage(),
        '/settings': (context) => const SettingsPage(),
      },
    );
  }
}
1
likes
150
points
100
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for efficient offline data caching and synchronization with enhanced security features and tag-based cache management.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

archive, crypto, encrypt, flutter, flutter_secure_storage, get_it, hive, hive_flutter, logging, path, shared_preferences, sqflite

More

Packages that depend on data_cache_x