flutter 网络图像 gif 不是动画
flutter network image gif is not animated
我正在使用此代码并且它有效,但来自网络的 GIF 图像不是动画,它们以第一帧显示。
ListTile(
tileColor: Colors.white,
trailing: Icon(Icons.keyboard_arrow_right),
leading: CircleAvatar(
backgroundColor: Colors.transparent,
backgroundImage: NetworkImageWithRetry(snapshot.data[index]['avatar_url']),
),
title: Text(snapshot.data[index]['user_name']),
),
问题来自 NetworkImageWithRetry()。
在本文发布时,NetworkImageWithRetry() 不支持 GIF 图像。它只显示 GIF 的第一帧。
我正在使用此代码并且它有效,但来自网络的 GIF 图像不是动画,它们以第一帧显示。
ListTile(
tileColor: Colors.white,
trailing: Icon(Icons.keyboard_arrow_right),
leading: CircleAvatar(
backgroundColor: Colors.transparent,
backgroundImage: NetworkImageWithRetry(snapshot.data[index]['avatar_url']),
),
title: Text(snapshot.data[index]['user_name']),
),
问题来自 NetworkImageWithRetry()。
在本文发布时,NetworkImageWithRetry() 不支持 GIF 图像。它只显示 GIF 的第一帧。