mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 09:37:02 +08:00
member audio
member comic Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -18,23 +18,13 @@ class StatWidget extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
IconData iconData = switch (type) {
|
||||
StatType.view => Icons.remove_red_eye_outlined,
|
||||
StatType.danmaku => Icons.subtitles_outlined,
|
||||
StatType.like => Icons.thumb_up_outlined,
|
||||
StatType.reply => Icons.comment_outlined,
|
||||
StatType.follow => Icons.favorite_border,
|
||||
StatType.play => Icons.play_circle_outlined,
|
||||
};
|
||||
|
||||
Color color = this.color ??
|
||||
Theme.of(context).colorScheme.outline.withValues(alpha: 0.8);
|
||||
|
||||
return Row(
|
||||
spacing: 2,
|
||||
children: [
|
||||
Icon(
|
||||
iconData,
|
||||
type.iconData,
|
||||
size: iconSize,
|
||||
color: color,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user