Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-13 11:49:38 +08:00
parent f824477ddb
commit c05fbde3fa
106 changed files with 2780 additions and 3200 deletions

View File

@@ -147,49 +147,46 @@ class _SearchResultPageState extends State<SearchResultPage>
),
),
Expanded(
child: Material(
color: Colors.transparent,
child: tabBarView(
controller: _tabController,
children: SearchType.values
.map(
(item) => switch (item) {
// SearchType.all => SearchAllPanel(
// tag: _tag,
// searchType: item,
// keyword: _searchResultController.keyword,
// ),
SearchType.video => SearchVideoPanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.media_bangumi ||
SearchType.media_ft =>
SearchPgcPanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.live_room => SearchLivePanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.bili_user => SearchUserPanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.article => SearchArticlePanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
},
)
.toList(),
),
child: tabBarView(
controller: _tabController,
children: SearchType.values
.map(
(item) => switch (item) {
// SearchType.all => SearchAllPanel(
// tag: _tag,
// searchType: item,
// keyword: _searchResultController.keyword,
// ),
SearchType.video => SearchVideoPanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.media_bangumi ||
SearchType.media_ft =>
SearchPgcPanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.live_room => SearchLivePanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.bili_user => SearchUserPanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
SearchType.article => SearchArticlePanel(
tag: _tag,
searchType: item,
keyword: _searchResultController.keyword,
),
},
)
.toList(),
),
),
],