👔 Account verification no longer showing along the individual publisher
This commit is contained in:
		| @@ -38,12 +38,14 @@ class AccountName extends StatelessWidget { | |||||||
|   final TextStyle? style; |   final TextStyle? style; | ||||||
|   final String? textOverride; |   final String? textOverride; | ||||||
|   final bool ignorePermissions; |   final bool ignorePermissions; | ||||||
|  |   final bool hideVerificationMark; | ||||||
|   const AccountName({ |   const AccountName({ | ||||||
|     super.key, |     super.key, | ||||||
|     required this.account, |     required this.account, | ||||||
|     this.style, |     this.style, | ||||||
|     this.textOverride, |     this.textOverride, | ||||||
|     this.ignorePermissions = false, |     this.ignorePermissions = false, | ||||||
|  |     this.hideVerificationMark = false, | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   Alignment _parseGradientDirection(String direction) { |   Alignment _parseGradientDirection(String direction) { | ||||||
| @@ -188,7 +190,8 @@ class AccountName extends StatelessWidget { | |||||||
|                 ), |                 ), | ||||||
|                 if (account.perkSubscription != null) |                 if (account.perkSubscription != null) | ||||||
|                   StellarMembershipMark(membership: account.perkSubscription!), |                   StellarMembershipMark(membership: account.perkSubscription!), | ||||||
|                 if (account.profile.verification != null) |                 if (account.profile.verification != null && | ||||||
|  |                     !hideVerificationMark) | ||||||
|                   VerificationMark(mark: account.profile.verification!), |                   VerificationMark(mark: account.profile.verification!), | ||||||
|                 if (account.automatedId != null) |                 if (account.automatedId != null) | ||||||
|                   Tooltip( |                   Tooltip( | ||||||
|   | |||||||
| @@ -609,6 +609,7 @@ class PostHeader extends StatelessWidget { | |||||||
|                                   account: item.publisher.account!, |                                   account: item.publisher.account!, | ||||||
|                                   textOverride: item.publisher.nick, |                                   textOverride: item.publisher.nick, | ||||||
|                                   style: TextStyle(fontWeight: FontWeight.bold), |                                   style: TextStyle(fontWeight: FontWeight.bold), | ||||||
|  |                                   hideVerificationMark: true, | ||||||
|                                 ) |                                 ) | ||||||
|                                 : Text( |                                 : Text( | ||||||
|                                   item.publisher.nick, |                                   item.publisher.nick, | ||||||
| @@ -616,9 +617,6 @@ class PostHeader extends StatelessWidget { | |||||||
|                                   overflow: TextOverflow.ellipsis, |                                   overflow: TextOverflow.ellipsis, | ||||||
|                                 ).bold(), |                                 ).bold(), | ||||||
|                       ), |                       ), | ||||||
|                       if (!(item.publisher.account?.profile.verification != |  | ||||||
|                               null && |  | ||||||
|                           item.publisher.type == 0)) |  | ||||||
|                       if (item.publisher.verification != null) |                       if (item.publisher.verification != null) | ||||||
|                         VerificationMark(mark: item.publisher.verification!), |                         VerificationMark(mark: item.publisher.verification!), | ||||||
|                       if (item.realm == null) |                       if (item.realm == null) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user