jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.36k stars 215 forks source link

The Branding Image isn't aligned centered vertically #741

Closed niklasbartsch closed 1 month ago

niklasbartsch commented 1 month ago

My Branding image of my iOS app is not aligned in center vertically. It is working on web but not on iOS.

This is my configuration:

flutter_native_splash:
  color: "#ffffff"
  branding: assets/icons/app_icon_light.png
  branding_mode: center

  color_dark: "#000000"
  branding_dark: assets/icons/app_icon_dark.png

  ios_content_mode: center

Bildschirmfoto 2024-10-11 um 16 38 24

nparoski commented 1 month ago

@niklasbartsch I think you have same issue as I did https://github.com/jonbhanson/flutter_native_splash/issues/742. You should use image instead of branding.

Also make sure to use 1152x1152px image with design in center of 768x768 e.g Group 9 (1)

jonbhanson commented 1 month ago

@nparoski is correct. The branding image is not meant to be vertically centered. For that, use the image parameter.