How to get build and version number of Flutter app
问题 I am currently developing an application which is currently in beta mode. Due to this, I would like to show them what version they are on. For example, "v1.0b10 - iOS". So far, I have got this code: Text("Build: V1.0b10 - " + (Platform.isIOS ? "iOS" : "Android")) . How would I be able to get the build version and number within flutter? 回答1: You can use package_info. The versions are extracted from : Android: build.gradle , versionCode and versionName iOS: Info.plist , CFBundleVersion Usage