fix getting patform type
This commit is contained in:
parent
ceed580fbd
commit
75fd829a14
1 changed files with 8 additions and 7 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue