mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
add login client type
This commit is contained in:
12
lib/platform/device_other.dart
Normal file
12
lib/platform/device_other.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'dart:io';
|
||||
|
||||
String? get device => null;
|
||||
|
||||
String? get clientPlatform {
|
||||
if (Platform.isAndroid) return "android";
|
||||
if (Platform.isIOS) return "ios";
|
||||
if (Platform.isLinux) return "linux";
|
||||
if (Platform.isMacOS) return "macos";
|
||||
if (Platform.isWindows) return "windows";
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user