简体   繁体   中英

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

something like this

how to do it?

You can use svg or icon in your project as,

 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://www.svgrepo.com/vectors/verified/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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