mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
23 lines
600 B
Dart
23 lines
600 B
Dart
import 'package:clock/clock.dart';
|
|
|
|
/// Hold non-persisted global variables
|
|
class SessionStorage {
|
|
factory SessionStorage() {
|
|
return _inst;
|
|
}
|
|
|
|
SessionStorage._();
|
|
|
|
/// Whether the range select notification has been shown to user
|
|
bool hasShowRangeSelectNotification = false;
|
|
|
|
/// Whether the drag to rearrange notification has been shown
|
|
bool hasShowDragRearrangeNotification = false;
|
|
|
|
/// Whether the dynamic_color library is supported in this platform
|
|
bool isSupportDynamicColor = false;
|
|
|
|
DateTime lastSuspendTime = clock.now();
|
|
|
|
static final _inst = SessionStorage._();
|
|
}
|