Home > Enterprise >  How can I resize image in pub package "flutter_native_splash"?
How can I resize image in pub package "flutter_native_splash"?

Time:11-10

I am using flutter_native_splash 1.3.1 package to add splash screen to the app.

The image size is getting displayed bigger than the desired size on the splash screen. What is right approach to decrease the size of the image on the splash screen?

CodePudding user response:

Unfortunately, I don't think you can do it. So the option is to resize your image to fit your screen. You can read about the resolution in this topic https://github.com/jonbhanson/flutter_native_splash/issues/89

CodePudding user response:

It is stated in the documentation that the image will be stretched to fit the screen. I think the best solution is to make your image with an aspect ratio of 9x16 (portrait) so the proportions stay the same.

  • Related