diff --git a/.icon_preview/green.png b/.icon_preview/green.png new file mode 100644 index 000000000..0dbf010a0 Binary files /dev/null and b/.icon_preview/green.png differ diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 540e924ff..65ac7c89c 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -69,7 +69,7 @@ tools:node="remove" /> + + #FFFFFF + \ No newline at end of file diff --git a/assets/icon/bg_green.png b/assets/icon/bg_green.png new file mode 100644 index 000000000..f668854d6 Binary files /dev/null and b/assets/icon/bg_green.png differ diff --git a/assets/icon/bg_white.png b/assets/icon/bg_white.png new file mode 100644 index 000000000..00751d9f0 Binary files /dev/null and b/assets/icon/bg_white.png differ diff --git a/assets/icon/fg_green.png b/assets/icon/fg_green.png new file mode 100644 index 000000000..76545eb4c Binary files /dev/null and b/assets/icon/fg_green.png differ diff --git a/assets/icon/icon_fg.png b/assets/icon/icon_fg.png new file mode 100644 index 000000000..00751d9f0 Binary files /dev/null and b/assets/icon/icon_fg.png differ diff --git a/assets/icon/icon_ios.png b/assets/icon/icon_ios.png new file mode 100644 index 000000000..128ba5686 Binary files /dev/null and b/assets/icon/icon_ios.png differ diff --git a/assets/icon/icon_mono.png b/assets/icon/icon_mono.png new file mode 100644 index 000000000..09f388de9 Binary files /dev/null and b/assets/icon/icon_mono.png differ diff --git a/assets/icon/legacy.png b/assets/icon/legacy.png new file mode 100644 index 000000000..c8415b41b Binary files /dev/null and b/assets/icon/legacy.png differ diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index ed13eec0f..8e9df832c 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -583,7 +583,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; @@ -640,7 +640,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 749992807..f9ea9c98a 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -7,7 +7,7 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Voitrans + Wicue CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -15,7 +15,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - Voitrans + Wicue CFBundlePackageType APPL CFBundleShortVersionString diff --git a/pubspec.yaml b/pubspec.yaml index 1301ccb63..b72b9a93c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -132,6 +132,16 @@ dev_dependencies: flutter_lints: ^2.0.0 build_runner: ^2.3.3 # 用于生成代码 flutter pub run build_runner build json_serializable: ^6.6.0 # 用于自动生成代码 + flutter_launcher_icons: ^0.13.1 # 生成 App 启动图标 + +# App 启动图标配置:flutter pub run flutter_launcher_icons +flutter_launcher_icons: + android: true + ios: true + image_path: "assets/icon/icon_ios.png" + remove_alpha_ios: true + adaptive_icon_background: "assets/icon/bg_green.png" + adaptive_icon_foreground: "assets/icon/icon_fg.png" flutter: uses-material-design: true