2024-05-27 18:26:06 +02:00
|
|
|
import 'package:clock/clock.dart';
|
2024-06-08 21:00:43 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2024-05-27 18:26:06 +02:00
|
|
|
|
2021-04-21 16:17:18 +02:00
|
|
|
/// 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;
|
|
|
|
|
2021-07-08 10:57:20 +02:00
|
|
|
/// Whether the drag to rearrange notification has been shown
|
|
|
|
bool hasShowDragRearrangeNotification = false;
|
|
|
|
|
2023-07-24 15:06:59 +02:00
|
|
|
/// Whether the dynamic_color library is supported in this platform
|
|
|
|
bool isSupportDynamicColor = false;
|
2024-06-08 21:00:43 +02:00
|
|
|
ColorScheme? lightDynamicColorScheme;
|
|
|
|
ColorScheme? darkDynamicColorScheme;
|
2023-07-24 15:06:59 +02:00
|
|
|
|
2024-05-27 18:26:06 +02:00
|
|
|
DateTime lastSuspendTime = clock.now();
|
|
|
|
|
2024-06-20 18:32:41 +02:00
|
|
|
bool hasShownVideoPreviewHint = false;
|
|
|
|
|
2021-09-15 08:58:06 +02:00
|
|
|
static final _inst = SessionStorage._();
|
2021-04-21 16:17:18 +02:00
|
|
|
}
|