mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
chore: Update MPV package to latest version (#165)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
da354437e3
commit
a518ae457e
28 changed files with 209 additions and 133 deletions
|
|
@ -8,7 +8,6 @@ import 'package:flutter/services.dart';
|
|||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:dynamic_color/dynamic_color.dart';
|
||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:isar/isar.dart';
|
||||
|
|
@ -45,19 +44,6 @@ bool get _isDesktop {
|
|||
].contains(defaultTargetPlatform);
|
||||
}
|
||||
|
||||
class CustomCacheManager {
|
||||
static const key = 'customCacheKey';
|
||||
static CacheManager instance = CacheManager(
|
||||
Config(
|
||||
key,
|
||||
stalePeriod: const Duration(days: 3),
|
||||
maxNrOfCacheObjects: 500,
|
||||
repo: JsonCacheInfoRepository(databaseName: key),
|
||||
fileService: HttpFileService(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> loadConfig() async {
|
||||
final configString = await rootBundle.loadString('config/config.json');
|
||||
return jsonDecode(configString);
|
||||
|
|
@ -310,6 +296,7 @@ class _MainState extends ConsumerState<Main> with WindowListener, WidgetsBinding
|
|||
),
|
||||
child: ScaffoldMessenger(child: child ?? Container()),
|
||||
),
|
||||
debugShowCheckedModeBanner: false,
|
||||
darkTheme: darkTheme.copyWith(
|
||||
scaffoldBackgroundColor: amoledOverwrite,
|
||||
cardColor: amoledOverwrite,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue