pub package

package_info_plus_module

this module is a part of the juneflow project, it provides a package_info_plus module for flutter project.

Installation

  1. If the juneflow project doesn't exist, please create it by following this guide.
  2. open terminal in the juneflow project root directory, enter the following command.
june add package_info_plus_module

Usage

PackageInfo packageInfo = await PackageInfo.fromPlatform();

  String appName = packageInfo.appName;
  String packageName = packageInfo.packageName;
  String version = packageInfo.version;
  String buildNumber = packageInfo.buildNumber;

  print("appName: $appName");
  print("packageName: $packageName");
  print("version: $version");
  print("buildNumber: $buildNumber");