add login client type

This commit is contained in:
2024-02-02 13:14:25 +08:00
parent 6608c0b94e
commit 23abc091ea
12 changed files with 221 additions and 2 deletions

View 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;
}