[英]How to create hover button in flutter
Id like to create similar animation effect with press button in flutter like this
我想用 flutter 中的按钮创建类似的 animation 效果,就像this
I tried to find some similar widget on https://pub.dev/ without success.我试图在https://pub.dev/上找到一些类似的小部件,但没有成功。 Any Idea how to create it?任何想法如何创建它?
Use materialappbutton to get hover animation effect.使用materialappbutton获得hover animation效果。
The only thing I can think of is working with a gradient which you adapt in a stateful way on hover.我唯一能想到的是使用渐变,您可以在 hover 上以有状态的方式进行调整。
See the below answer for how to make a gradient border: Outlined transparent button with gradient border in flutter有关如何制作渐变边框的信息,请参见以下答案: flutter 中带有渐变边框的轮廓透明按钮
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.