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() {
|
||||
if (isPwa()) {
|
||||
if (platform == TargetPlatform.android) {
|
||||
return "Android";
|
||||
} else if (platform == TargetPlatform.iOS) {
|
||||
return "iOS";
|
||||
}
|
||||
} else if (kIsWeb) {
|
||||
// if (isPwa()) {
|
||||
// if (platform == TargetPlatform.android) {
|
||||
// return "Android";
|
||||
// } else if (platform == TargetPlatform.iOS) {
|
||||
// return "iOS";
|
||||
// }
|
||||
// } else
|
||||
if (kIsWeb) {
|
||||
return "Web";
|
||||
} else if (!kIsWeb) {
|
||||
if (platform == TargetPlatform.android) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue