简而言之,使用ansparent隐藏实际文本,然后显示一个悬停在Text下划线上方的偏移阴影
Text("Forgot Password?",style: TextStyle(shadows: [Shadow(color: Colors.black,offset: Offset(0, -5))],color: ansparent,decoration:TextDecoration.underline,decorationColor: Colors.blue,decorationThickness: 4,decorationStyle:TextDecorationStyle.dashed,),)
实际效果:
本文发布于:2024-01-28 11:08:35,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/17064113216994.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |