简体   繁体   中英

Is it possible to change default Flutter splash screen transition?

I have a splash screen in my app, made by this article and it works fine.

I'm wondering is it possible to change a default fade transition between splash screen and the main application?

You should try this plugin:

customSplash

And there are still more on pub.dev.

The code for custom splash:

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.StaticDuration,
        outputAndHome: op,
    ),
));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM