Skip to content

Instantly share code, notes, and snippets.

@lvsecoto
Created May 5, 2024 10:50
Show Gist options
  • Save lvsecoto/f624e2a6348575aace392211fb892507 to your computer and use it in GitHub Desktop.
Save lvsecoto/f624e2a6348575aace392211fb892507 to your computer and use it in GitHub Desktop.
# 修改应用图标
# 1. 添加依赖
# flutter pub add dev:flutter_launcher_icons
# 2. 运行
# flutter pub run flutter_launcher_icons
flutter_launcher_icons:
android: "launcher_icon"
ios: true
macos:
generate: true
remove_alpha_ios: true
image_path: "[icon.png]"
min_sdk_android: 21
# 修改应用名称
# 1. 添加依赖
# flutter pub add dev:rename_app
# 2. 运行
# flutter pub run rename_app:main all="[应用名字]"
# 修改应用包名
# 1. 添加依赖
# flutter pub add dev:change_app_package_name
# 2. 运行
# flutter pub run change_app_package_name:main [com.new.package.name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment