launcher_name_plus 1.0.3
launcher_name_plus: ^1.0.3 copied to clipboard
Localize your Flutter app's launcher name on Android and iOS from pubspec.yaml. A maintained, drop-in successor of launcher_name that escapes special characters.
Example #
Add the package and a launcher_name section to your app's pubspec.yaml:
dev_dependencies:
launcher_name_plus: ^1.0.3
launcher_name:
default: "My App"
ko: "내 앱"
ja: "マイアプリ"
fr: "L'application"
Then run it from the app root:
dart run launcher_name_plus:main
It writes:
android/app/src/main/res/values/strings.xmlandvalues-<lang>/strings.xml, and pointsandroid:labelinAndroidManifest.xmlto@string/appName.ios/Runner/Resources/InfoPlist.stringsand<lang>.lproj/InfoPlist.strings, and setsCFBundleDisplayNameinInfo.plistto${PRODUCT_NAME}.
The French name above contains ', which launcher_name 1.0.2 wrote unescaped and broke the Android build. This package writes it as L\'application.