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

No way to position the splash at the bottom of the screen. #46

Open Waheed388 opened 1 year ago

Waheed388 commented 1 year ago

You can't really position the splash widget at the bottom of the screen.

Shreyasc13 commented 1 year ago

You can try doing something like this:

AnimatedSplashScreen(
      duration: 3000,
      centered: true,
      splash: Container(
        child: Column(mainAxisAlignment: MainAxisAlignment.end, children: [
          const Text(
            "Title",
            style: TextStyle(
              fontSize: 64,
              fontWeight: FontWeight.bold,
            ),
          ),
          Image.asset('assets/images/splash.png')
        ]),
      ),
      splashIconSize: double.infinity,
      nextScreen: const LoginWidget(),
      splashTransition: SplashTransition.fadeTransition,
      pageTransitionType: PageTransitionType.fade,
    );