滚动时的卡片动画列表视图生成器

时间:2020-04-07 05:50:52

标签: flutter dart

颤振
我如何在滚动时使Animation的ListView环绕浮动按钮。 如下图所示

我需要使用火光还是劈裂?

在此处查看图片https://i.stack.imgur.com/Xv99X.png

body:ListView.builder(

    itemCount: suras.length,
    itemBuilder: (context,index){
      return Padding(
        padding: const EdgeInsets.symmetric(vertical:1,horizontal: 4),
        child: Center(
          child: Card(
            color: Colors.greenAccent[700],
            child: ListTile(
              onTap:(){
                print(suras[index].suraNum);
                //String suraNameFinal = suras[index].suraName;
                Navigator.pushNamed(context, '/player');

              },
              title:Text(suras[index].suraNum,
              style:TextStyle(
                fontFamily: 'segoeui',
                color: Colors.grey[200],
                fontSize: 20,
                fontWeight: FontWeight.bold,
              ),
              textAlign: TextAlign.center,
              ),
              /*trailing: CircleAvatar(
                backgroundImage: AssetImage('asset/cover.jpg'),
              ),*/
            ),
          ),
        ),
      );
    },
  ),

0 个答案:

没有答案