Kent1011 / client_information

A plugin to get basic information from the client of your Flutter application
https://pub.dev/packages/client_information
MIT License
6 stars 18 forks source link

Could you add sdkInt to get the Android API number? #11

Closed JmyW closed 1 year ago

JmyW commented 1 year ago

Not an issue but function request.

Thanks for offer this package. Through your package, I can read OS version but I cannot find a way to get the Android API number. For example, got OS version 7.0. But I hope to further get the API version 24 as integer number for comparison.

Kent1011 commented 1 year ago

You can refer to osVersionCode in the latest version (2.1.1). In Android, it represents the Android API level.

JmyW commented 1 year ago

Thanks a lot for teaching. I didn't find the osVersionCode function. YES! it WORKS!