🍱 Add more badges
This commit is contained in:
parent
6e03a00280
commit
22fde6b400
@ -517,8 +517,13 @@
|
|||||||
"accountBirthday": "Born on {}",
|
"accountBirthday": "Born on {}",
|
||||||
"accountBadge": "Badge",
|
"accountBadge": "Badge",
|
||||||
"accountCheckInNoRecords": "No check-in records",
|
"accountCheckInNoRecords": "No check-in records",
|
||||||
"badgeCompanyStaff": "Solsynth Staff",
|
"badgeCompanyStaff": "Staff",
|
||||||
"badgeSiteMigration": "Solar Network Native",
|
"badgeSiteMigration": "Solar Network Native",
|
||||||
|
"badgeCommunitySurvey": "Survey Participant",
|
||||||
|
"badgeCommunityVerified": "Verified User",
|
||||||
|
"badgeCommunityContributor": "Great Contributor",
|
||||||
|
"badgeSiteAnniversary": "Anniversary",
|
||||||
|
"badgeUserBirthday": "Birthday",
|
||||||
"accountStatus": "Status",
|
"accountStatus": "Status",
|
||||||
"accountStatusOnline": "Online",
|
"accountStatusOnline": "Online",
|
||||||
"accountStatusOffline": "Offline",
|
"accountStatusOffline": "Offline",
|
||||||
|
@ -517,6 +517,11 @@
|
|||||||
"accountCheckInNoRecords": "暂无运势记录",
|
"accountCheckInNoRecords": "暂无运势记录",
|
||||||
"badgeCompanyStaff": "工作人员",
|
"badgeCompanyStaff": "工作人员",
|
||||||
"badgeSiteMigration": "Solar Network 原住民",
|
"badgeSiteMigration": "Solar Network 原住民",
|
||||||
|
"badgeCommunitySurvey": "调研参与者",
|
||||||
|
"badgeCommunityVerified": "认证用户",
|
||||||
|
"badgeCommunityContributor": "优秀社区贡献者",
|
||||||
|
"badgeSiteAnniversary": "周年纪念",
|
||||||
|
"badgeUserBirthday": "生日纪念",
|
||||||
"accountStatus": "状态",
|
"accountStatus": "状态",
|
||||||
"accountStatusOnline": "在线",
|
"accountStatusOnline": "在线",
|
||||||
"accountStatusOffline": "离线",
|
"accountStatusOffline": "离线",
|
||||||
|
@ -517,6 +517,11 @@
|
|||||||
"accountCheckInNoRecords": "暫無運勢記錄",
|
"accountCheckInNoRecords": "暫無運勢記錄",
|
||||||
"badgeCompanyStaff": "工作人員",
|
"badgeCompanyStaff": "工作人員",
|
||||||
"badgeSiteMigration": "Solar Network 原住民",
|
"badgeSiteMigration": "Solar Network 原住民",
|
||||||
|
"badgeCommunitySurvey": "調研參與者",
|
||||||
|
"badgeCommunityVerified": "認證用户",
|
||||||
|
"badgeCommunityContributor": "優秀社區貢獻者",
|
||||||
|
"badgeSiteAnniversary": "週年紀念",
|
||||||
|
"badgeUserBirthday": "生日紀念",
|
||||||
"accountStatus": "狀態",
|
"accountStatus": "狀態",
|
||||||
"accountStatusOnline": "在線",
|
"accountStatusOnline": "在線",
|
||||||
"accountStatusOffline": "離線",
|
"accountStatusOffline": "離線",
|
||||||
|
@ -517,6 +517,11 @@
|
|||||||
"accountCheckInNoRecords": "暫無運勢記錄",
|
"accountCheckInNoRecords": "暫無運勢記錄",
|
||||||
"badgeCompanyStaff": "工作人員",
|
"badgeCompanyStaff": "工作人員",
|
||||||
"badgeSiteMigration": "Solar Network 原住民",
|
"badgeSiteMigration": "Solar Network 原住民",
|
||||||
|
"badgeCommunitySurvey": "調研參與者",
|
||||||
|
"badgeCommunityVerified": "認證用戶",
|
||||||
|
"badgeCommunityContributor": "優秀社區貢獻者",
|
||||||
|
"badgeSiteAnniversary": "週年紀念",
|
||||||
|
"badgeUserBirthday": "生日紀念",
|
||||||
"accountStatus": "狀態",
|
"accountStatus": "狀態",
|
||||||
"accountStatusOnline": "在線",
|
"accountStatusOnline": "在線",
|
||||||
"accountStatusOffline": "離線",
|
"accountStatusOffline": "離線",
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
@ -22,7 +22,7 @@ import 'package:surface/widgets/dialog.dart';
|
|||||||
import 'package:surface/widgets/universal_image.dart';
|
import 'package:surface/widgets/universal_image.dart';
|
||||||
import 'package:surface/theme.dart';
|
import 'package:surface/theme.dart';
|
||||||
|
|
||||||
const Map<String, (String, IconData, Color)> kBadgesMeta = {
|
final Map<String, (String, IconData, Color)> kBadgesMeta = {
|
||||||
'company.staff': (
|
'company.staff': (
|
||||||
'badgeCompanyStaff',
|
'badgeCompanyStaff',
|
||||||
Symbols.tools_wrench,
|
Symbols.tools_wrench,
|
||||||
@ -33,6 +33,31 @@ const Map<String, (String, IconData, Color)> kBadgesMeta = {
|
|||||||
Symbols.flag,
|
Symbols.flag,
|
||||||
Colors.orange,
|
Colors.orange,
|
||||||
),
|
),
|
||||||
|
'site.anniversary': (
|
||||||
|
'badgeSiteAnniversary',
|
||||||
|
Symbols.celebration,
|
||||||
|
Colors.orangeAccent,
|
||||||
|
),
|
||||||
|
'user.birthday': (
|
||||||
|
'badgeUserBirthday',
|
||||||
|
Symbols.cake,
|
||||||
|
Colors.red[400]!,
|
||||||
|
),
|
||||||
|
'community.survey': (
|
||||||
|
'badgeCommunitySurvey',
|
||||||
|
Symbols.star,
|
||||||
|
Colors.yellow[700]!,
|
||||||
|
),
|
||||||
|
'community.verified': (
|
||||||
|
'badgeCommunityVerified',
|
||||||
|
Symbols.verified,
|
||||||
|
Colors.blue,
|
||||||
|
),
|
||||||
|
'community.contributor': (
|
||||||
|
'badgeCommunityContributor',
|
||||||
|
Symbols.thumb_up,
|
||||||
|
Colors.lightGreen,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
class UserScreen extends StatefulWidget {
|
class UserScreen extends StatefulWidget {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user