利用flutter仿抖音点击进入直播间动画效果
效果图:
对于这个widget 已经封装成插件 供大家依赖使用
askai_animation_button: ^last version
组件的一些必选属性:
const KaiAnimationButton( {Key? key, required this.text, //按钮内文字 required this.innerCircleColor, //内圈的颜色渐变 List类型[begin,end] required this.outerRingColor, //外圈的颜色渐变 List类型[begin,end] this.style, required this.onTap, required this.innerWidth, //内圈的宽度变化.List类型 [begin,end] required this.outerRingWidth, //外圈的宽度变化. List类型[begin,end] required this.outerRingHeight}) //外圈的高度变化.List类型 [begin,end] : super(key: key);see also
原创作者:As.Kai 关注我,一起成长 搬运请注明原文链接以及作者名
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。 |