1. App Name
- Android:
android:label in android/app/src/main/AndroidManifest.xml
- iOS:
CFBundleDisplayName in ios/Runner/Info.plist
xml
<application
android:label="My Shop"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
2. App Icon
Prepare a square PNG of 1024 x 1024 pixels without transparency problems (iOS does not allow transparency in the icon), then use flutter_launcher_icons.
bash
flutter pub add dev:flutter_launcher_icons
yaml
# pubspec.yaml
flutter_launcher_icons:
android: true
ios: true
image_path: "assets/icon/icon.png"
adaptive_icon_background: "#FFFFFF"
adaptive_icon_foreground: "assets/icon/icon_foreground.png"
bash
dart run flutter_launcher_icons
3. Splash Screen
bash
flutter pub add dev:flutter_native_splash
yaml
flutter_native_splash:
color: "#FFFFFF"
image: assets/splash/logo.png
color_dark: "#121212"
image_dark: assets/splash/logo_dark.png
bash
dart run flutter_native_splash:create
Keep it short: A native splash shows while Flutter loads. Do not make users wait on it. Move to the first screen as fast as you can.
4. Environments: dev, staging, production
Apps usually talk to different servers in development and production. The easiest way is --dart-define.
bash
flutter run --dart-define=API_URL=https://dev.example.com --dart-define=ENV=dev
flutter build apk --dart-define=API_URL=https://api.example.com --dart-define=ENV=prod
dart
class Config {
static const apiUrl = String.fromEnvironment('API_URL', defaultValue: 'https://dev.example.com');
static const env = String.fromEnvironment('ENV', defaultValue: 'dev');
}
For different app names, icons and package ids per environment, use flavors (Android productFlavors, iOS schemes). They need more setup, so see the official flavors guide when you need them.
5. Localization (Multiple Languages)
bash
flutter pub add flutter_localizations --sdk=flutter
flutter pub add intl
yaml
# pubspec.yaml
flutter:
generate: true
yaml
# l10n.yaml (project root)
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
json
// lib/l10n/app_en.arb
{
"@@locale": "en",
"hello": "Hello",
"welcomeUser": "Welcome, {name}!",
"@welcomeUser": { "placeholders": { "name": { "type": "String" } } }
}
// lib/l10n/app_hi.arb
{
"@@locale": "hi",
"hello": "नमस्ते",
"welcomeUser": "स्वागत है, {name}!"
}
dart
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// In newer Flutter versions the import may be: package:your_app/l10n/app_localizations.dart
MaterialApp(
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
home: const HomePage(),
)
// In a widget
Text(AppLocalizations.of(context)!.welcomeUser('Asha'))
Run flutter pub get or flutter run, and Flutter generates AppLocalizations. Also use Directionality and TextDirection.rtl support if you add Arabic or Urdu.
Plan early: Putting text into ARB files from the start is much easier than replacing hundreds of hard-coded strings later.
Conclusion
A good icon, a quick splash, clean environment settings and translations make your app feel professional.
Quick Summary: Use flutter_launcher_icons and flutter_native_splash, dart-define for environments and ARB files for localization.