flip

Last updated:

0 purchases

flip Image
flip Images
Add to Cart

Description:

flip

Flip #
翻转效果控件, 可以水平或垂直翻转控件。
Widget build(BuildContext context){
return Flip(
controller:controller, //FlipController实例,用来控制翻转动作
flipDirection: Axis.horizontal, //或Axis.vertical,水平翻转或垂直翻转
flipDuration: Duration(milliseconds: 200), //翻转动画时间,默认值为300毫秒
firstChild: Container(), //正面的控件
secondChild: Container(), //背面的控件
);
}

void onAnyAction(){
controller.isFront = true; //翻转到正面
controller.isFront = false; //翻转到背面
controller.flip(); //翻转到相反面
}
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.