我可以从颤动的SplashScreen上卸下装载轮吗

时间:2020-06-30 20:30:53

标签: flutter dart splash-screen

我在我的应用程序上使用标准的SplashScreen对象,它具有一个字段,可以更改为加载轮的颜色,但是没有一个字段可以删除加载器。我希望图像居中放置在其下方。可以卸下装载轮吗?

 return new SplashScreen(
      seconds: 2,
      navigateAfterSeconds: new RootPage(auth: widget.auth),
      image: new Image.asset('assets/icon.png'),
      backgroundColor: Colors.black,
      photoSize: MediaQuery.of(context).size.width/2 - 100,),
    )

这是flutter库中的实际对象。运行Splash时,它带有一个加载圆

2 个答案:

答案 0 :(得分:2)

我看到您使用的是SplashScreen软件包,我认为删除该指示器没有价值,但是您可以尝试使其颜色透明

return SplashScreen(
  seconds: 2,
  navigateAfterSeconds: new RootPage(auth: widget.auth),
  image: Image.asset('assets/icon.png'),
  backgroundColor: Colors.black,
  photoSize: MediaQuery.of(context).size.width/2 - 100,),
  loaderColor: Colors.transparent //this will make it invisible
)

答案 1 :(得分:0)

这对我有用

    useLoader:false;
相关问题