mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt get sdkInt
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -15,6 +15,16 @@ class Utils {
|
||||
|
||||
static const channel = MethodChannel("PiliPlus");
|
||||
|
||||
static int? _sdkInt;
|
||||
|
||||
static Future<int> get sdkInt async {
|
||||
if (_sdkInt != null) {
|
||||
return _sdkInt!;
|
||||
}
|
||||
_sdkInt = (await DeviceInfoPlugin().androidInfo).version.sdkInt;
|
||||
return _sdkInt!;
|
||||
}
|
||||
|
||||
static bool? _isIpad;
|
||||
|
||||
static Future<bool> isIpad() async {
|
||||
|
||||
Reference in New Issue
Block a user