add invoice pdf
This commit is contained in:
12
lib/helpers/cache_mgr.dart
Normal file
12
lib/helpers/cache_mgr.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
|
||||
class PdfCacheMgr {
|
||||
static const key = 'pdfs';
|
||||
static CacheManager pdfs = CacheManager(
|
||||
Config(
|
||||
key,
|
||||
stalePeriod: const Duration(days: 7),
|
||||
maxNrOfCacheObjects: 20,
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user