TF-261 Add HtmlEditor for web browser
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:core';
|
||||
|
||||
import 'package:device_info/device_info.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
|
||||
|
||||
class DeviceManager {
|
||||
final DeviceInfoPlugin _deviceInfoPlugin;
|
||||
@@ -9,6 +10,10 @@ class DeviceManager {
|
||||
|
||||
Future<bool> isNeedRequestStoragePermissionOnAndroid() async {
|
||||
final androidInfo = await _deviceInfoPlugin.androidInfo;
|
||||
return androidInfo.version.sdkInt <= 28;
|
||||
final sdkInt = androidInfo.version.sdkInt;
|
||||
if (sdkInt != null) {
|
||||
return sdkInt <= 28;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user