角标修改

This commit is contained in:
谢宇宁
2026-11-05 17:04:01 +07:00
parent ab53d09596
commit 61c290cf64
4 changed files with 132 additions and 27 deletions
+1 -4
View File
@@ -99,16 +99,13 @@ class AcgItemWidget extends StatelessWidget {
}
Widget _buildLevelIcon() {
if (info?.permission == 1 && Config.coinMark)
return _levelTag('金币', const Color(0xFF1F2029),
bgColor: [const Color(0xFFFFE580), const Color(0xFFFACC15)]);
if (info?.permission == 0 && Config.vipMark)
return _levelTag('VIP', Colors.white,
bgColor: [const Color(0xFFFF8000), const Color(0xFFFF7A01)]);
return const SizedBox.shrink();
}
// 金币/VIP 角标:渐变底 + 文字,仅文字与文字色不同
// VIP 角标:渐变底 + 文字,仅文字与文字色不同
Widget _levelTag(String text, Color textColor, {List<Color>? bgColor}) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 6),