DPLYR-dev / SplashScreenFlutterPackage

A small splashscreen used as intro for flutter applications easily with a lot of customizations ❤️🥳
MIT License
294 stars 123 forks source link

Center image #54

Open Kotlin-GDE opened 3 years ago

ahmedmgh67 commented 3 years ago

Hello @halimpuckjava Can you tell us a little bit more about the issue you are facing?

Kotlin-GDE commented 3 years ago

@ahmedmgh67

i suggest

  1. center image or wrap it with expand widget to take all space available
  2. remove onclick callback (its s splashscreen so onclick has no sens)
  3. if you center image or wrap it in expand widget, remove photosize property

thanks

kovacpetar commented 3 years ago

Are there any news about this requirement? Could the first and the third suggestion be priority as it's really annoying to see that the title is taking up space where it isn't even defined. @ahmedmgh67 And also thank you so much for this amazing package!

connelevalsam commented 3 years ago

I don't understand you.

any example on how to do this?

I don't want to add anything, the image is all I want and I want it centered or just a background image

ramism16 commented 3 years ago

@connelevalsam this splashscreen package renders as a widget after the native splash and MaterialApp widget have finished rendering.

For your custom splash, you can add to native splash using the flutter_native_splash package which is a little tricky to set up but will work great for custom splash that renders before the widget tree starts building.