gif_control_csx

Last updated:

0 purchases

gif_control_csx Image
gif_control_csx Images
Add to Cart

Description:

gif control csx

gif_control_csx #
用于flutter 对gif的控制,
使用示例 #
controller1 = GifController(vsync: this);
controller2 = GifController(vsync: this);
controller4 = GifController(vsync: this);
WidgetsBinding.instance.addPostFrameCallback((_) {
controller1.repeat(
min: 0, max: 53, period: const Duration(milliseconds: 200));
});
WidgetsBinding.instance.addPostFrameCallback((_) {
controller2.repeat(
min: 0, max: 13, period: const Duration(milliseconds: 200));
controller4.repeat(
min: 0, max: 13, period: const Duration(milliseconds: 200));
});
controller3 = GifController(
vsync: this,
duration: const Duration(milliseconds: 200),
reverseDuration: const Duration(milliseconds: 200));
...
...
GifImageCsx(
controller: controller1,
image: const AssetImage("images/animate.gif"),
),
const Text("网络"),
GifImageCsx(
controller: controller2,
image: const NetworkImage(
"http://img.mp.itc.cn/upload/20161107/5cad975eee9e4b45ae9d3c1238ccf91e.jpg"),
),
const Text("内存"),
GifImageCsx(
controller: controller4,
image: MemoryImage(base64Decode(base64_url)
),
)

copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.