reworked developer tools with diagnostics, storage viewers and release-capable debug overlays
This commit is contained in:
@@ -5,6 +5,8 @@ import 'dart:typed_data';
|
||||
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
||||
import '../utils/directory_size.dart';
|
||||
|
||||
/// Persistent disk cache for the in-app [UserAvatar] widget.
|
||||
///
|
||||
/// The widget keeps a session-scoped in-memory LRU; this store survives app
|
||||
@@ -156,6 +158,8 @@ class AvatarDiskCache {
|
||||
}
|
||||
}
|
||||
|
||||
Future<int> totalSize() async => directorySize(await _directory());
|
||||
|
||||
/// Wipes the whole cache — used by the argument-less `invalidateAvatarCache`
|
||||
/// (e.g. on logout).
|
||||
Future<void> clear() async {
|
||||
|
||||
Reference in New Issue
Block a user