How to get build and version number of Flutter app
You can use package_info_plus. The versions are extracted from: Android: build.gradle, versionCode and versionName iOS: Info.plist, CFBundleVersion Usage Add the dependency Add this to your package’s pubspec.yaml file: dependencies: package_info_plus: ^1.0.6 Import the file into your dart file: import ‘package:package_info_plus/package_info_plus.dart’; if your method is marked as async: PackageInfo packageInfo = await PackageInfo.fromPlatform(); String appName = … Read more