flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.79k stars 3.2k forks source link

Update documentation with how to display icons on splash screens on Splash Screen page. #9344

Open suman-somu opened 1 year ago

suman-somu commented 1 year ago

On following the documentation of adding a splash screen, I couldn't get the result. I added each respective dpi icon and changed the icon in styles.xml I tested it in both android 13 and android 12 with the respective code.

The thing which worked for me was changing the icon from default to my own in AndroidManifest. It changed the icon and showed the splash screen correctly.

<application
        android:label="instgram_clone"
        android:name="${applicationName}"
        android:icon="@mipmap/images">

I don't know why it worked like this. But if it's required, then add as a step in docs.

danagbemava-nc commented 1 year ago

Hi @suman-somu, it would help if you could share what you wanted to achieve. Please also link to the documentation that you used.

Thank you

suman-somu commented 11 months ago

I want to add splash screen on my app. But following the steps in the docs didn't got me anything. docs link - https://docs.flutter.dev/platform-integration/android/splash-screen

I modified the android manifest code as above mentioned and it worked.

danagbemava-nc commented 11 months ago

Hi @suman-somu, if I understand correctly, the icon wasn't showing in your splash screen but after adding the android:icon="@mipmap/images" to your manifest the icon started showing?

suman-somu commented 11 months ago

yes, that's correct