mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-26 02:58:39 +00:00
@@ -41,8 +41,9 @@ class _SearchResultPageState extends State<SearchResultPage>
|
||||
|
||||
if (_isFromSearch == true) {
|
||||
try {
|
||||
sSearchController =
|
||||
Get.find<SSearchController>(tag: Get.parameters['tag']);
|
||||
sSearchController = Get.find<SSearchController>(
|
||||
tag: Get.parameters['tag'],
|
||||
);
|
||||
} catch (_) {}
|
||||
_tabController.addListener(listener);
|
||||
}
|
||||
@@ -111,25 +112,29 @@ class _SearchResultPageState extends State<SearchResultPage>
|
||||
() {
|
||||
int count = _searchResultController.count[item.index];
|
||||
return Tab(
|
||||
text:
|
||||
'${item.label}${count != -1 ? ' ${count > 99 ? '99+' : count}' : ''}');
|
||||
text:
|
||||
'${item.label}${count != -1 ? ' ${count > 99 ? '99+' : count}' : ''}',
|
||||
);
|
||||
},
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
isScrollable: true,
|
||||
indicatorWeight: 0,
|
||||
indicatorPadding:
|
||||
const EdgeInsets.symmetric(horizontal: 3, vertical: 8),
|
||||
indicatorPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 3,
|
||||
vertical: 8,
|
||||
),
|
||||
indicator: BoxDecoration(
|
||||
color: theme.colorScheme.secondaryContainer,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(20)),
|
||||
),
|
||||
indicatorSize: TabBarIndicatorSize.tab,
|
||||
labelColor: theme.colorScheme.onSecondaryContainer,
|
||||
labelStyle: TabBarTheme.of(context)
|
||||
.labelStyle
|
||||
?.copyWith(fontSize: 13) ??
|
||||
labelStyle:
|
||||
TabBarTheme.of(
|
||||
context,
|
||||
).labelStyle?.copyWith(fontSize: 13) ??
|
||||
const TextStyle(fontSize: 13),
|
||||
dividerColor: Colors.transparent,
|
||||
dividerHeight: 0,
|
||||
@@ -158,32 +163,31 @@ class _SearchResultPageState extends State<SearchResultPage>
|
||||
// keyword: _searchResultController.keyword,
|
||||
// ),
|
||||
SearchType.video => SearchVideoPanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
SearchType.media_bangumi ||
|
||||
SearchType.media_ft =>
|
||||
SearchPgcPanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
SearchType.media_ft => SearchPgcPanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
SearchType.live_room => SearchLivePanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
SearchType.bili_user => SearchUserPanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
SearchType.article => SearchArticlePanel(
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
tag: _tag,
|
||||
searchType: item,
|
||||
keyword: _searchResultController.keyword,
|
||||
),
|
||||
},
|
||||
)
|
||||
.toList(),
|
||||
|
||||
Reference in New Issue
Block a user