lib item page ready

This commit is contained in:
Dr-Blank 2024-05-12 05:38:30 -04:00
parent 0d54f1cb15
commit 097caf8ec2
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
15 changed files with 804 additions and 221 deletions

View file

@ -1,8 +1,9 @@
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
import 'package:whispering_pages/settings/constants.dart';
final imageCacheManager = CacheManager(
Config(
'image_cache_manager',
'${AppMetadata.appNameLowerCase}_image_cache',
stalePeriod: const Duration(days: 365 * 10),
repo: JsonCacheInfoRepository(),
maxNrOfCacheObjects: 1000,
@ -11,8 +12,8 @@ final imageCacheManager = CacheManager(
final apiResponseCacheManager = CacheManager(
Config(
'api_response_cache_manager',
stalePeriod: const Duration(days: 1),
'${AppMetadata.appNameLowerCase}_api_response_cache',
stalePeriod: const Duration(days: 7),
repo: JsonCacheInfoRepository(),
maxNrOfCacheObjects: 1000,
),