You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Run the library to produce ios_content_mode: center results.
Observe that everything is fine.
Rerun the library with ios_content_mode: scaleAspectFill.
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.
The text was updated successfully, but these errors were encountered:
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
ios_content_mode: center
results.ios_content_mode: scaleAspectFill
.Screenshots
![Screenshot 2024-09-01 at 2 27 01 PM](https://private-user-images.githubusercontent.com/1090627/363514530-846c55a7-17a2-401e-954a-45032bbe043d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjM3MDQsIm5iZiI6MTczOTM2MzQwNCwicGF0aCI6Ii8xMDkwNjI3LzM2MzUxNDUzMC04NDZjNTVhNy0xN2EyLTQwMWUtOTU0YS00NTAzMmJiZTA0M2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTIzMDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTEzN2Q5NGRhZWYyMmVmMmZmY2Y2YTcwNGFhYTFhNTI3OWY0NDc4YjNmNzNjZjI4YTg3NjAwMmFkMzRjNTlhOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.3d4I910wmUK2L016WCSP-KkewRvs-3KXttt3ypHp4Qc)
If applicable, add screenshots to help explain your problem. If in doubt, attach a screenshot.
Excepted Result:
Actual Result:
![Screenshot 2024-09-01 at 2 28 30 PM](https://private-user-images.githubusercontent.com/1090627/363514584-8863cf0c-ca38-4c87-978a-6d64f77e5879.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjM3MDQsIm5iZiI6MTczOTM2MzQwNCwicGF0aCI6Ii8xMDkwNjI3LzM2MzUxNDU4NC04ODYzY2YwYy1jYTM4LTRjODctOTc4YS02ZDY0Zjc3ZTU4NzkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTIzMDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmI4ZmE0ODI2Y2NmMmNjZTJkNGQwOTBkZGExNWE2ZGJhMGU0Zjk4ZGZkMDBlZjI3NDdjNzBiNTdjMGUzYTE1NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Qu-twv2lzRy4oE4N6GKvZ4vcsJy_OCXyD9VaMlE9AcA)
Additional context
![Screenshot 2024-09-01 at 2 28 45 PM](https://private-user-images.githubusercontent.com/1090627/363514595-e26dfb16-b2a4-493c-9640-dbf3db6780ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjM3MDQsIm5iZiI6MTczOTM2MzQwNCwicGF0aCI6Ii8xMDkwNjI3LzM2MzUxNDU5NS1lMjZkZmIxNi1iMmE0LTQ5M2MtOTY0MC1kYmYzZGI2NzgwYWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTIzMDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzNiMWZhN2ExZGVmYTQ3NDIzNTM5NjAzZTFjMTgyYzliZTQ5ZTNmMjY1MmVhZmExNDFhYjQxZWQ0OTViN2IxMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.AmPaB3GkIEDzNteggPLwj4_D9tRWHVa7_AtthhDgWvE)
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.
The text was updated successfully, but these errors were encountered: