【问题标题】:Is it possible to change default Flutter splash screen transition?是否可以更改默认的 Flutter 闪屏过渡?
【发布时间】:2020-12-05 15:47:45
【问题描述】:

我的应用程序中有一个初始屏幕,由 article 制作,它运行良好。

我想知道是否可以更改初始屏幕和主应用程序之间的默认淡入淡出过渡?

【问题讨论】:

    标签: flutter splash-screen


    【解决方案1】:

    你应该试试这个插件:

    customSplash

    还有更多关于 pub.dev 的内容。

    自定义启动代码:

    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,
        ),
    ));
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-18
      • 1970-01-01
      • 1970-01-01
      • 2011-03-01
      相关资源
      最近更新 更多