Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 282 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the application launcher icon on Flutter?

#11
**Follow simple steps:**

**1.** Add `flutter_launcher_icons` Plugin to `pubspec.yaml`

e.g.

dev_dependencies:
flutter_test:
sdk: flutter

flutter_launcher_icons: "^0.9.0"

flutter_icons:
image_path: "icon/icon.png"
android: true
ios: true
# optionally, as transparency is not allowed on app store
# remove_alpha_ios: true


**2.** Prepare an app icon for the specified path.
`e.g. icon/icon.png`

**3.** Execute command on the terminal to Create app icons:

`$ flutter pub get`

`$ flutter pub run flutter_launcher_icons:main`


To check check all available options and to set different icons for android and iOS please refer [this][1]

**Update:**

`flutter_launcher_icons 0.8.0` Version (12th Sept 2020) has **Added flavours support**

Flavors are typically used to build your app for different environments such as `dev` and `prod`

The community has written some articles and packages you might find useful. These [articles][2] address flavors for both iOS and Android.



[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#12
Try [IconKitchen][1], the successor to the Android Asset Studio, and a great new way to make highly customizable app icons for Android, iOS, and the web.


[1]:

[To see links please register here]

Reply

#13
The flutter_launcher_icons package recommended in many answers above hasn't been updated for quite some time now and is throwing an uncaught exception.

You can use the package [icons_launcher][1] instead though.

1. Update the pubspec.yaml
```
dev_dependencies:
icons_launcher: ^1.1.7

flutter_icons:
image_path: 'assets/ic_logo_border.png'
ios: true
android: true
```

2. Run the package
```
flutter pub get
flutter pub run icons_launcher:main
```


[1]:

[To see links please register here]

Reply

#14
I use few methods for chaging flutter app lancher icon but only the manuall method is a bit easy and good. Because you will know how it work.

So to change flutter ios icon. First get copy of your icon 1024×1024 pixel and generate set of icons for android and ios using appicon.co generator.
When you get zip file it work create two folder ios and android open ios folder and copy folder and replace the one in your ios/runner directory.

For android copy all folder present in android folder and replace the ones present in the android/app/src/main/res/drawable here.

After replacing folder on both ios and android stop the app and re run and your icons will be changed.
Reply

#15
Without any packages

**Android**

1. Create an adaptive launcher icon in your Flutter project's root directory using the [Android Asset Studio.][1]

2. Add the generated launcher icon files to the project's `android/app/src/main/res/mipmap-*/` directories.

3. Edit the `android/app/src/main/AndroidManifest.xml` file and add the following line below the <application> tag:

`<application android:icon="@mipmap/ic_launcher">`

4. Run the `flutter build apk` command to generate an APK with the new launcher icon.

**iOS**

1. Create an Adaptive App Icon in your Flutter project's root directory using the [App Icon Generator][2].

2. Add the generated app icon files to the project's `ios/Runner/Assets.xcassets/AppIcon.appiconset/` directory.

3. Edit the `ios/Runner/Info.plist` file and add the following line below the <dict> tag:
```
<key>CFBundleIconName</key>
<string>AppIcon</string>
```
4. Run the flutter build ios command to generate an IPA with the new launcher icon.


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#16
[flutter_launcher_icons: ^0.13.1][1]

**Add this in your `pubspec.yaml` file**

dev_dependencies:
flutter_launcher_icons: "^0.13.1"

flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon/icon.png"
min_sdk_android: 21 # android min sdk min:16, default 21
# optionally, as transparency is not allowed on app store
# remove_alpha_ios: true

after adding this run the below `command`



> `$ flutter pub get`

> `$ flutter pub run flutter_launcher_icons:main`



[1]:

[To see links please register here]

Reply

#17
I love this site from generate icons.

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through