💄 Optimize publisher name display

This commit is contained in:
2025-10-23 00:38:37 +08:00
parent 1ae81794b1
commit 8bec18813d
7 changed files with 31 additions and 15 deletions

View File

@@ -36,11 +36,13 @@ const kVerificationMarkColors = [
class AccountName extends StatelessWidget {
final SnAccount account;
final TextStyle? style;
final String? textOverride;
final bool ignorePermissions;
const AccountName({
super.key,
required this.account,
this.style,
this.textOverride,
this.ignorePermissions = false,
});
@@ -177,7 +179,7 @@ class AccountName extends StatelessWidget {
child: ShaderMask(
shaderCallback: (bounds) => gradient.createShader(bounds),
child: Text(
account.nick,
textOverride ?? account.nick,
style: nameStyle.copyWith(color: Colors.white),
maxLines: 1,
overflow: TextOverflow.ellipsis,