* fix: 1080p

* opt: import export

* opt: downloader

* opt: skeleton

* opt: parseColor

* tweak

* opt: sb seek

* opt: rxn
This commit is contained in:
My-Responsitories
2026-05-08 12:50:43 +00:00
committed by GitHub
parent b7b40c557e
commit f5dbfcec79
30 changed files with 258 additions and 376 deletions

View File

@@ -14,17 +14,17 @@ abstract final class MaxScreenSize {
static Future<void> _initFoldable() async {
final isFoldable = await Utils.channel.invokeMethod('isFoldable');
if (isFoldable == true) {
const MethodChannel('ScreenChannel').setMethodCallHandler((call) async {
const MethodChannel('ScreenChannel').setMethodCallHandler((call) {
if (call.method == 'onConfigChanged') {
_handleRes(call.arguments);
}
return Future.syncValue(null);
});
}
}
static Future<void> _initScreenSize() async {
final res = await Utils.channel.invokeMethod('maxScreenSize');
_handleRes(res);
static Future<void> _initScreenSize() {
return Utils.channel.invokeMethod('maxScreenSize').then(_handleRes);
}
static void _handleRes(dynamic res) {