Flutter - How to Get App Name, Package Name, Version & Build number Last Updated : 28 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will learn about how to get package name, app name, version and build number and many more things in our Flutter app. The main usecase of using this is when we want to give a new update to users and have to notify them from our app. Step By Step ImplementationStep 1: Create a New Project in Android StudioTo set up Flutter Development on Android Studio please refer to Android Studio Setup for Flutter Development, and then create a new project in Android Studio please refer to Creating a Simple Application in Flutter. Step 2: Add a package in the pubspec.yaml file Dart dependencies: package_info_plus: ^5.0.1 Step 3: Import the PackageImport the package in the file to access different package Dart import 'package:package_info_plus/package_info_plus.dart'; Step 4: Get Details Dart @override void initState() { super.initState(); PackageInfo.fromPlatform().then((value) { print(value); // Value will be our all details we get from package info package }); } Step 5: Use it in your app as per your requirementWe will simply display it in text Complete Code: Dart import 'package:flutter/material.dart'; import 'package:package_info_plus/package_info_plus.dart'; class PackageInfoScreen extends StatefulWidget { const PackageInfoScreen({super.key}); @override State<PackageInfoScreen> createState() => _PackageInfoScreenState(); } class _PackageInfoScreenState extends State<PackageInfoScreen> { Map<String, dynamic> myPackageData = {}; @override void initState() { super.initState(); PackageInfo.fromPlatform().then((value) { myPackageData = value.data; setState(() {}); }); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text("Package Infos Details"), ), body: Padding( padding: const EdgeInsets.all(8.0), child: Center( child: Text( myPackageData.toString(), style: const TextStyle(fontSize: 20), ), ), ), ); } } Sample data for pubspec.yaml file Output: Let's discuss about each variable we recieves through this packageVariable Name Description Example Value appName This is used to show app's name which you give while creating your app learning_projects_flutter buildNumber It is build number written in pubspec.yaml file after an version number.For Example 1.0.0+2your build number will be 3 and your version number will be 1.0.0 1 packageName Package name of that app with its organization,project_name com.flutterwings.learning_projects_flutter version version written in pubspec.yaml fileIt is build number written in pubspec.yaml file after an version number. For Example 1.0.0+2 your build number will be 3 and your version number will be 1.0.0 1.0.0 buildSignature The build signature. Empty string on iOS, signing key signature (hex) on Android 1212CD2F9CE4211BAEFCF95EF5294E518177C341 installerStore This will give you store from where you have installed this application playstore,appstore, Comment More infoAdvertise with us Next Article Flutter - How to Get App Name, Package Name, Version & Build number F flutterwings Follow Improve Article Tags : Flutter Geeks Premier League 2023 Similar Reads How to Change Package Name in Flutter? Every Flutter app has a package name that uniquely identifies your app on the Google Play Store and Apple App Store. In this article, we will learn how to change the package name with a simple and easy method. The package name is basically a unique identity to identify that app on App Store, Play St 2 min read How to Setup Multiple Flutter Versions on Mac? If you are a flutter developer, working on projects with different flutter versions and using Macbook. You have definitely faced this problem that how to run projects with different flutter versions at the same time. If you will use FVM (Flutter version management) You can get rid of this problem. F 2 min read How to Run Gradle Build in Flutter? Gradle is a tool that is used to automate tasks in android development. The Gradle build is one specific task that can be used to create APK files for your app. Often, the flutter run/build tasks don't work as desired, and in those cases, cleaning and building the Gradle again can be helpful. There 2 min read How to Write TestCases For API Calls in Flutter? Here we are going to a built app that calls an API and write test cases for it before we dive into it letâs go through some basic concepts. Software testing is a process in which we test code to ensure that it produces the excepted results at any given instance. Flutter tests consist of: Unit test - 8 min read How to Build a Bitcoin Tracker Flutter App? In this article, we will be building a Bitcoin Tracker Project using Flutter and Dart . The application will display the current rates of Bitcoin in different countries using Bitcoin API. There are many free APIs available and for this project, we will be using API by Coinlayer. The API will return 3 min read Like