The one given by pubspec.yaml
seems to be just a initial number. version: 1.0.0 1
There is an internal counter stored somewhere.
How can I check the internal build number?
CodePudding user response:
Android:
build.gradle, versionCode and versionName
iOS:
Info.plist, CFBundleVersion
Or flutter package: https://pub.dev/packages/package_info_plus
CodePudding user response:
package_info_plus: ^1.0.6
Example:
PackageInfo packageInfo = await PackageInfo.fromPlatform();
String version = packageInfo.version;