如何在flutter中为圆形头像添加标签
我创建了一个圆形头像,并想显示它的标签,以明确头像是什么。
I have created a circle avatar and want to show the label for it as to make it clear for what the avatar is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议使用 circular_profile_avatar 包,你不能添加
label
或标题
到CircleAvatar
。通过这个包,您可以在您的类似Stack
上添加Text
。如果您不喜欢软件包,可以关注此链接,我希望它有所帮助。
I suggest to use circular_profile_avatar package, you cant add
label
ortitle
toCircleAvatar
. by this package you can addText
over your likeStack
.if you didnt like package you can follow this link, i hope it helps.
您可以使用 Stack 小部件示例用法:
You can use Stack widget sample usage: