Flutter - How to Get App Name, Package Name, Version & Build number Last Updated : 28 Apr, 2025 Comments Improve Suggest changes 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 flutterwings Follow Improve Article Tags : Dart Flutter Geeks Premier League 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 How to Get MAC Address of Device in Flutter? Flutter SDK is an open-source software development kit by Google to develop applications for multiple platforms from a single codebase. Sometimes, your app needs to know the MAC address of the device. MAC (Media Access Control) address is the unique identifier of a device on a LAN network. Approach: 2 min read Flutter - How to Get Instagram Username Data Flutter is a cross-platform application development toolkit developed and maintained by Google. Flutter redefines cross-platform app development by combining great design with superb capabilities. Flutter was released to the public in 2017, and since then many large corporations have shifted towards 3 min read How to Install HTTP Package in Flutter? Flutter is Googleâs Mobile SDK to build native iOS and Android apps from a single codebase. When building applications with Flutter everything towards Widgets â the blocks with which the flutter apps are built. The User Interface of the app is composed of many simple widgets, each of them handling o 2 min read How to Import Local Package in Flutter? Flutter is a framework that is used for developing cross-platform applications for Android, iOS, Linux, macOS, Windows, and other web applications using a single source code and it was developed by Google. Flutter is a free and open-source software development kit for developing mobile applications. 4 min read How to Integrate Google Maps in Flutter Applications? We all have seen that Google Maps is used by many applications such as Ola, Uber, Swiggy, and others. We must set up an API project with the Google Maps Platform in order to integrate Google Maps into our Flutter application. In this article, we will look at How to Integrate Google Maps in Flutter A 4 min read Like