On iOS, the scaleToFill option is not working as expected. I was able to manually get it to work, but I wanted to report my findings to further improve the library.
Device (please complete the following information):
Device: iPhone 15 Pro, iPhone 15 Pro Max (Simulator)
OS: 17.6.1, OS 17.5
XCode: 15.4
To Reproduce
1) Run the library to produce ios_content_mode: center results.
2) Observe that everything is fine.
3) Rerun the library with ios_content_mode: scaleAspectFill.
4) Observe a black splash screen. This is even visible in XCode's LaunchScreen storyboard.
Screenshots
If applicable, add screenshots to help explain your problem. If in doubt, attach a screenshot.
Excepted Result:
Actual Result:
Additional context
The left is the code I manually changed to get it to work. I think that the view, image AND background is being given scaleToFill, but I think only the LaunchBackground needs to be given the contentMode and we want to leave the overall view and foreground image alone for now.
Attention: If you open a bug report without sufficient details, it will be closed. Is your question related to Android 12? Please check the notes on Android 12 first (https://pub.dev/packages/flutter_native_splash#android-12-support).
Describe the bug
On iOS, the scaleToFill option is not working as expected. I was able to manually get it to work, but I wanted to report my findings to further improve the library.
Configuration
Device (please complete the following information):
To Reproduce 1) Run the library to produce
ios_content_mode: center
results. 2) Observe that everything is fine. 3) Rerun the library withios_content_mode: scaleAspectFill
. 4) Observe a black splash screen. This is even visible in XCode's LaunchScreen storyboard.Screenshots If applicable, add screenshots to help explain your problem. If in doubt, attach a screenshot. Excepted Result:
Actual Result:
Additional context The left is the code I manually changed to get it to work. I think that the view, image AND background is being given scaleToFill, but I think only the LaunchBackground needs to be given the contentMode and we want to leave the overall view and foreground image alone for now.