So I have been trying to add some padding only on ios but not on andoid. Is there any way to check if I am in android or ios so I can implement this feature in my app. Thanks in Advance.
Asked
Active
Viewed 617 times
2
-
more details [on this related question](https://stackoverflow.com/q/45924474/451944) – richaux May 31 '22 at 08:46
1 Answers
2
Just use Platform.operatingSystem
from the io library.
The output is a string which is:
- "ios" for IOS
- "android" for Android
You can also use Platform.isIOS
or Platform.isAndroid
directly.

Lulupointu
- 3,364
- 1
- 12
- 28