mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 21:24:02 +08:00
tweaks (#2032)
* fix: 1080p * opt: import export * opt: downloader * opt: skeleton * opt: parseColor * tweak * opt: sb seek * opt: rxn
This commit is contained in:
committed by
GitHub
parent
b7b40c557e
commit
f5dbfcec79
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user