Flutter:带有持续时间和进度条的启动画面

For*_*kie 2 android flutter

我是颤振的菜鸟,现在正在试验颤振。我试图实现一个闪屏。我的要求:

  • 启动应用程序时,闪屏应显示 3 秒。
  • 它应该在 3 秒后消失。
  • 它应该在显示时显示一个进度条,并在 3 秒内完成。

小智 5

return new SplashScreen(
    seconds: 4,
    navigateAfterSeconds: new HomeScreen(),
    title: new Text(
      'WELCOME TO KIDS MANIA',
      style: new TextStyle(
          fontWeight: FontWeight.bold,
          fontSize: 20.0,
          fontFamily: 'Chunkfive'),
    ),
    image: Image.asset("images/splashlogo.png"),
    backgroundColor: Colors.lightBlueAccent,
    styleTextUnderTheLoader: new TextStyle(fontFamily: 'Chunkfive'),
    photoSize: 100.0,
    loaderColor: Colors.black,
);
Run Code Online (Sandbox Code Playgroud)