2

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.

1

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.