fix getting patform type
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user