Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding background color for iOS icon. #424

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

edufolly
Copy link

Adding background color for iOS icon using the adaptive_icon_background parameter value.

@aytunch
Copy link

aytunch commented Dec 20, 2022

Hi will this be added to the plugin and is there an eta? Thank you.

@edufolly
Copy link
Author

edufolly commented Mar 5, 2023

PR updated.

@OutdatedGuy
Copy link
Contributor

@edufolly, this feature is already present with the background_color_ios key in config.

It is not documented tho, hence I have raised a issue to follow up.

@SoftwareLogico
Copy link

For me is still not working
`
flutter_launcher_icons: ^0.13.1

flutter_launcher_icons:
android: "launcher_icon"
ios: true
remove_alpha_ios: true
background_color_ios: "#ffffff"
adaptive_icon_background: "#ffffff"
image_path: "assets/logo.png"
min_sdk_android: 26
`

I did
flutter clean
flutter pub get
flutter pub run flutter_launcher_icons
then
flutter pub run flutter_launcher_icons:main

i deleted manually the ios icons and nope

still black background

@OutdatedGuy
Copy link
Contributor

@SoftwareLogico, that's odd. I just tried after reading your comment and it worked for me.

Config File
dev_dependencies:
  flutter_launcher_icons: ^0.13.1

# dart run flutter_launcher_icons
flutter_launcher_icons:
  ios: true
  image_path_ios: "assets/icons/adaptive-icon-foreground.png"
  remove_alpha_ios: true
  background_color_ios: "#4169e1"
Adpative Icon Result
tmp-49743-yPETPCkeAFHP- Icon-App-1024x1024@1x

@SoftwareLogico
Copy link

@SoftwareLogico, that's odd. I just tried after reading your comment and it worked for me.

Config File
Adpative Icon Result
tmp-49743-yPETPCkeAFHP- Icon-App-1024x1024@1x

Screen.Recording.2023-06-20.at.3.49.18.PM.mov

Maybe I'm missing some extra step?

@OutdatedGuy
Copy link
Contributor

@SoftwareLogico, can you send the image and the config you are using to create iOS icons.

@SoftwareLogico
Copy link

@SoftwareLogico, can you send the image and the config you are using to create iOS icons.

sure
logo is just a free transparent png
logo

and config idk if you meant this:

`name: rpf
description: rpf.

publish_to: 'none'
version: 1.0.0+1

environment:
sdk: '>=3.0.1 <4.0.0'

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.2
flutter_launcher_icons: ^0.13.1
http: ^0.13.0
flutter_native_splash: ^2.3.0
url_launcher: ^6.1.11
flutter_secure_storage: ^8.0.0
path_provider: ^2.0.15
provider: ^6.0.5
intl: ^0.18.0
image_picker: ^0.8.7+5
audioplayers: ^4.1.0
flutter_tts: ^3.7.0

flutter_native_splash:
fullscreen: true
android: true
ios: true
color: "#303236"
image: assets/splash768.png
android_12:
color: "#303236"
android_gravity: fill_horizontal|fill_vertical
ios_content_mode: scaleAspectFit

flutter_launcher_icons:
android: "launcher_icon"
ios: true
remove_alpha_ios: true
background_color_ios: "#585858"
adaptive_icon_background: "#585858"
image_path: "assets/logo.png"
min_sdk_android: 26

dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^2.0.0

flutter:

uses-material-design: true
assets:
- assets/`

@OutdatedGuy
Copy link
Contributor

@SoftwareLogico ohh I realised I was using the version directly from git. Hence was getting this yet to be released feature.

Sorry for the confusion.

@MarkOSullivan94, please release a new version with latest features.

@SoftwareLogico
Copy link

@SoftwareLogico ohh I realised I was using the version directly from git. Hence was getting this yet to be released feature.

Sorry for the confusion.

@MarkOSullivan94, please release a new version with latest features.

Oh don't worry, i'm glad you took the time to check that out. I appreciate it😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants