* tweak

* opt: async

* tweak

* opt: PopularSeries tile

* tweak

* opt: sc

* mod: more account type

* tweak

* opt: qrcode

* tweak

* partial revert: opt: sc

* fix

* fix

* mod: window enqueue
This commit is contained in:
My-Responsitories
2025-09-26 00:02:55 +08:00
committed by GitHub
parent 67c25bd130
commit 4ae3bd2845
29 changed files with 520 additions and 554 deletions

View File

@@ -28,17 +28,15 @@ abstract class Utils {
static final bool isDesktop =
Platform.isWindows || Platform.isMacOS || Platform.isLinux;
static Future<({double left, double top})> get windowOffset async {
static Future<Offset> get windowOffset async {
final windowPosition = Pref.windowPosition;
if (windowPosition != null) {
return (left: windowPosition[0], top: windowPosition[1]);
return Offset(windowPosition[0], windowPosition[1]);
}
final Size windowSize = await windowManager.getSize();
final Offset position = await calcWindowPosition(
windowSize,
return await calcWindowPosition(
await windowManager.getSize(),
Alignment.center,
);
return (left: position.dx, top: position.dy);
}
static Future<bool> get isWiFi async {