refactor device orientation

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-06 15:16:21 +08:00
parent db74eccf77
commit 3097b56816
16 changed files with 218 additions and 264 deletions

View File

@@ -78,12 +78,12 @@ abstract final class ImageUtils {
}
}
static Future<bool> checkPermissionDependOnSdkInt() async {
static Future<bool> checkPermissionDependOnSdkInt() {
if (Platform.isAndroid) {
if (await Utils.sdkInt < 29) {
if (Utils.sdkInt < 29) {
return requestPer();
} else {
return true;
return Future.syncValue(true);
}
}
return requestPer();