编辑pubspec.yaml文件
name: flutterDemo
description: A new Flutter application.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.14+1
修改:
- 程序名称-name:flutterDemo
- 程序说明-description:我是说明
- 程序版本-version: 1.0.3+1
- 修改完成之后重新编译。
修改APP显示名称:
- 选择“\android\app\src\main\AndroidManifest.xml”,修改:
<application android:name="io.flutter.app.FlutterApplication" android:label="APP的名称" android:icon="@mipmap/ic_launcher">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.flutterDemo">
<application android:name="io.flutter.app.FlutterApplication" android:label="我是一个名称" android:icon="@mipmap/ic_launcher">
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>