简体   繁体   English

如何在 flutter 中创建蓝色验证标记

[英]How to create blue verification mark in flutter

I would like to give verification mark to my users.我想给我的用户一个验证标记。 Pretty much something like what Instagram or Facebook has很像 Instagram 或 Facebook 所拥有的

something like this像这样的东西

how to do it?怎么做?

You can use svg or icon in your project as,您可以在项目中使用svgicon

 IconButton(
            icon: new Icon(Icons.verified),
            color: Colors.yellow,
            highlightColor: Colors.blue,
            onPressed: _onSearchButtonPressed(),
          ),

implementation:执行:

static const IconData verified = IconData(0xe699, fontFamily: 'MaterialIcons');

checkout these also for more info:还可以查看这些以获取更多信息:

https://api.flutter.dev/flutter/material/Icons/verified-constant.html https://api.flutter.dev/flutter/material/Icons/verified-constant.html

https://www.svgrepo.com/vectors/verified/ https://www.svgrepo.com/vectors/verified/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM