From e996a0c95f46138c47932f6d84718fc235aba0bf Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Nov 2025 13:04:07 +0800 Subject: [PATCH] :alien: Update the verification mark --- lib/widgets/account/account_name.dart | 42 ++++++++++++++++++--------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/lib/widgets/account/account_name.dart b/lib/widgets/account/account_name.dart index a429bb69..04d65095 100644 --- a/lib/widgets/account/account_name.dart +++ b/lib/widgets/account/account_name.dart @@ -25,12 +25,24 @@ const Map kUsernamePlainColors = { 'white': Colors.white, }; -const kVerificationMarkColors = [ +const List kVerificationMarkIcons = [ + Symbols.build_circle, + Symbols.verified, + Symbols.verified, + Symbols.account_balance, + Symbols.palette, + Symbols.code, + Symbols.masks, +]; + +const List kVerificationMarkColors = [ Colors.teal, - Colors.blue, - Colors.amber, - Colors.blueGrey, Colors.lightBlue, + Colors.indigo, + Colors.red, + Colors.orange, + Colors.blue, + Colors.blueAccent, ]; class AccountName extends StatelessWidget { @@ -291,13 +303,14 @@ class VerificationMark extends StatelessWidget { @override Widget build(BuildContext context) { final icon = Icon( - mark.type == 4 - ? Symbols.play_circle - : mark.type == 0 - ? Symbols.build_circle + (kVerificationMarkIcons.length > mark.type && mark.type >= 0) + ? kVerificationMarkIcons[mark.type] : Symbols.verified, size: 16, - color: kVerificationMarkColors[mark.type], + color: + (kVerificationMarkColors.length > mark.type && mark.type >= 0) + ? kVerificationMarkColors[mark.type] + : Colors.blue, fill: 1, ); @@ -394,13 +407,14 @@ class VerificationStatusCard extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Icon( - mark.type == 4 - ? Symbols.play_circle - : mark.type == 0 - ? Symbols.build_circle + (kVerificationMarkIcons.length > mark.type && mark.type >= 0) + ? kVerificationMarkIcons[mark.type] : Symbols.verified, size: 32, - color: kVerificationMarkColors[mark.type], + color: + (kVerificationMarkColors.length > mark.type && mark.type >= 0) + ? kVerificationMarkColors[mark.type] + : Colors.blue, fill: 1, ).alignment(Alignment.centerLeft), const Gap(8),