verifiedIdentityIcon method

Widget verifiedIdentityIcon({
  1. required bool email,
})

Green-ticked envelope (email) or phone icon shown in front of the identity once it is verified.

Implementation

Widget verifiedIdentityIcon({required bool email}) {
  return SizedBox(
    width: 26,
    height: 22,
    child: Stack(
      clipBehavior: Clip.none,
      children: [
        Positioned(
          left: 0,
          bottom: 0,
          child: Icon(
            email ? Icons.email_rounded : Icons.phone_android_rounded,
            size: 20,
            color: email ? const Color(0xFFDAA520) : theme.primary,
          ),
        ),
        Positioned(
          right: 0,
          top: 0,
          child: Container(
            width: 12,
            height: 12,
            decoration: const BoxDecoration(
              shape: BoxShape.circle,
              color: Color(0xFF5FDB6F),
            ),
            child: const Icon(Icons.check, size: 9, color: Colors.white),
          ),
        ),
      ],
    ),
  );
}