Animation 光泽效果(颤振)

Animation 光泽效果(颤振),animation,flutter,Animation,Flutter,我需要在启动屏幕上的徽标上应用闪亮效果。其目的是重现Glassdoor应用程序启动屏幕的效果。您知道如何编写此代码吗?我建议使用。他们的例子很简单,应该会让你走得更远。@Hannes谢谢你的回复!我尝试了微光效果 这是我的代码: Widget build(BuildContext context) { return new Scaffold( backgroundColor: Color.fromRGBO(185, 40, 47, 1), body: new Cen

我需要在启动屏幕上的徽标上应用闪亮效果。其目的是重现Glassdoor应用程序启动屏幕的效果。您知道如何编写此代码吗?

我建议使用。他们的例子很简单,应该会让你走得更远。

@Hannes谢谢你的回复!我尝试了微光效果

这是我的代码:

Widget build(BuildContext context) {
   return new Scaffold(
      backgroundColor: Color.fromRGBO(185, 40, 47, 1),
      body: new Center(
      child:SizedBox(
        width: MediaQuery.of(context).size.width * 0.7,
        //height: 100.0,
        child: Shimmer.fromColors(
          baseColor: Colors.transparent,
          highlightColor: Colors.white,//.withOpacity(0.2),
          child: Image.asset('assets/NishkamSWATLogoOfficialSplash.jpg',
            width: MediaQuery.of(context).size.width * 0.7,)
        ),
      ),

    ),
   );
  }

但是图像中没有显示另一个较新的颤振软件包[],它可能正是您想要的。这个较新的shimmer_动画软件包不会像@Hannes Kuttner推荐的另一个[]软件包那样,用底色覆盖要显示的图像