mod: show lv6_s

Closes #687

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-15 17:43:44 +08:00
parent 14f8ec37c5
commit bc8907b3ef
22 changed files with 26 additions and 8 deletions

View File

@@ -130,7 +130,7 @@ class UserInfoCard extends StatelessWidget {
),
const SizedBox(width: 8),
Image.asset(
'assets/images/lv/lv${card.levelInfo?.currentLevel}.png',
'assets/images/lv/lv${card.levelInfo?.identity == 2 ? '6_s' : card.levelInfo?.currentLevel}.png',
height: 11,
semanticLabel: '等级${card.levelInfo?.currentLevel}',
),

View File

@@ -176,7 +176,7 @@ class _MinePageState extends State<MinePage> {
),
const SizedBox(width: 4),
Image.asset(
'assets/images/lv/lv${_mineController.userInfo.value.levelInfo != null ? _mineController.userInfo.value.levelInfo!.currentLevel : '0'}.png',
'assets/images/lv/lv${_mineController.userInfo.value.isSeniorMember == 1 ? '6_s' : _mineController.userInfo.value.levelInfo != null ? _mineController.userInfo.value.levelInfo!.currentLevel : '0'}.png',
height: 10,
semanticLabel:
'等级:${_mineController.userInfo.value.levelInfo != null ? _mineController.userInfo.value.levelInfo!.currentLevel : '0'}',

View File

@@ -27,6 +27,7 @@ Widget searchArticlePanel(
return CustomScrollView(
controller: searchPanelCtr.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPersistentHeader(
pinned: false,

View File

@@ -14,6 +14,7 @@ Widget searchLivePanel(
Loading() => loadingWidget,
Success() => loadingState.response?.isNotEmpty == true
? GridView.builder(
physics: const AlwaysScrollableScrollPhysics(),
padding: EdgeInsets.only(
left: StyleString.safeSpace,
right: StyleString.safeSpace,

View File

@@ -17,6 +17,7 @@ Widget searchBangumiPanel(
Success() => loadingState.response?.isNotEmpty == true
? CustomScrollView(
controller: ctr.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPadding(
padding: EdgeInsets.only(

View File

@@ -25,6 +25,7 @@ Widget searchUserPanel(
return CustomScrollView(
controller: searchPanelCtr.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPersistentHeader(
pinned: false,
@@ -151,7 +152,7 @@ Widget searchUserPanel(
),
const SizedBox(width: 6),
Image.asset(
'assets/images/lv/lv${i!.level}.png',
'assets/images/lv/lv${i.isSeniorMember == 1 ? '6_s' : i!.level}.png',
height: 11,
semanticLabel: '等级${i.level}',
),

View File

@@ -23,6 +23,7 @@ Widget searchVideoPanel(
final controller = Get.put(VideoPanelController(), tag: searchPanelCtr.tag);
return CustomScrollView(
controller: searchPanelCtr.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPersistentHeader(
pinned: false,

View File

@@ -274,7 +274,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
),
const SizedBox(width: 8),
Image.asset(
'assets/images/lv/lv${memberInfoModel.level}.png',
'assets/images/lv/lv${memberInfoModel.isSeniorMember == 1 ? '6_s' : memberInfoModel.level}.png',
height: 11,
),
],

View File

@@ -245,7 +245,7 @@ Widget _itemWidget(BuildContext context, dynamic item) {
const SizedBox(width: 6),
Image.asset(
'assets/images/lv/lv${item['author']['level']}.png',
height: 11,
height: 19,
),
],
),

View File

@@ -302,7 +302,7 @@ class ReplyItemGrpc extends StatelessWidget {
),
const SizedBox(width: 6),
Image.asset(
'assets/images/lv/lv${replyItem.member.level}.png',
'assets/images/lv/lv${replyItem.member.isSeniorMember == 1 ? '6_s' : replyItem.member.level}.png',
height: 11,
semanticLabel: "等级:${replyItem.member.level}",
),