clean-code-dev / animated_splash_screen

The easiest way to create your animated splash screen in a fully customizable way.
MIT License
112 stars 25 forks source link

How to scale ? #10

Closed jdeltoft closed 3 years ago

jdeltoft commented 3 years ago

Great work! I tried "animated_splash: ^1.0.0" and it had weird errors so I tried this one and so far so good. But I would like to understand how to "fit" to my. screen. I was able to Transform.scale(scale: 2.0 child: AnimatedSplashScreen()) but I don't want to hard code this.

jdeltoft commented 3 years ago

Ah, I see in your code:

  /// Return icon of splash screen
  Widget getSplash() {
    final size =
        w.splashIconSize ?? MediaQuery.of(context).size.shortestSide * 0.2;
    ...

I guess my request is for a new option to change this "0.2" as an optional parameter