fix getting patform type

This commit is contained in:
2024-12-10 14:11:38 +02:00
parent ceed580fbd
commit 75fd829a14

View File

@@ -76,13 +76,14 @@ class MyTheme {
} }
String getPlatform() { String getPlatform() {
if (isPwa()) { // if (isPwa()) {
if (platform == TargetPlatform.android) { // if (platform == TargetPlatform.android) {
return "Android"; // return "Android";
} else if (platform == TargetPlatform.iOS) { // } else if (platform == TargetPlatform.iOS) {
return "iOS"; // return "iOS";
} // }
} else if (kIsWeb) { // } else
if (kIsWeb) {
return "Web"; return "Web";
} else if (!kIsWeb) { } else if (!kIsWeb) {
if (platform == TargetPlatform.android) { if (platform == TargetPlatform.android) {