👽 Update the verification mark

This commit is contained in:
2025-11-23 13:04:07 +08:00
parent a090e93f57
commit e996a0c95f

View File

@@ -25,12 +25,24 @@ const Map<String, Color> kUsernamePlainColors = {
'white': Colors.white, 'white': Colors.white,
}; };
const kVerificationMarkColors = [ const List<IconData> kVerificationMarkIcons = [
Symbols.build_circle,
Symbols.verified,
Symbols.verified,
Symbols.account_balance,
Symbols.palette,
Symbols.code,
Symbols.masks,
];
const List<Color> kVerificationMarkColors = [
Colors.teal, Colors.teal,
Colors.blue,
Colors.amber,
Colors.blueGrey,
Colors.lightBlue, Colors.lightBlue,
Colors.indigo,
Colors.red,
Colors.orange,
Colors.blue,
Colors.blueAccent,
]; ];
class AccountName extends StatelessWidget { class AccountName extends StatelessWidget {
@@ -291,13 +303,14 @@ class VerificationMark extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final icon = Icon( final icon = Icon(
mark.type == 4 (kVerificationMarkIcons.length > mark.type && mark.type >= 0)
? Symbols.play_circle ? kVerificationMarkIcons[mark.type]
: mark.type == 0
? Symbols.build_circle
: Symbols.verified, : Symbols.verified,
size: 16, size: 16,
color: kVerificationMarkColors[mark.type], color:
(kVerificationMarkColors.length > mark.type && mark.type >= 0)
? kVerificationMarkColors[mark.type]
: Colors.blue,
fill: 1, fill: 1,
); );
@@ -394,13 +407,14 @@ class VerificationStatusCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
Icon( Icon(
mark.type == 4 (kVerificationMarkIcons.length > mark.type && mark.type >= 0)
? Symbols.play_circle ? kVerificationMarkIcons[mark.type]
: mark.type == 0
? Symbols.build_circle
: Symbols.verified, : Symbols.verified,
size: 32, size: 32,
color: kVerificationMarkColors[mark.type], color:
(kVerificationMarkColors.length > mark.type && mark.type >= 0)
? kVerificationMarkColors[mark.type]
: Colors.blue,
fill: 1, fill: 1,
).alignment(Alignment.centerLeft), ).alignment(Alignment.centerLeft),
const Gap(8), const Gap(8),