Search code snippets, questions, articles...

Add launcher or mobile app icon in Fluter

To change default flutter app icons you can use the flutter_launcher_icons package. It will generate and replace default flutter icons of your mobile app.
// add package - flutter_launcher_icons
// package_link - https://pub.dev/packages/flutter_launcher_icons
// Add package in dev dependencies

// pubspec.yaml file
dev_dependencies:
  flutter_launcher_icons: "latest_version"

flutter_icons:
  android: true
  ios: true
  image_path: "assets/icons/icon.png"

//Now run below commands to generate icons
flutter pub get
flutter pub run flutter_launcher_icons:main

Search Index Data (The code snippet can also be found with below search text)

change default app icon flutter
Was this helpful?
0 Comments