mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-03 01:00:14 +08:00
@@ -14,7 +14,7 @@ class SearchAllController
|
||||
required super.tag,
|
||||
});
|
||||
|
||||
bool? hasJump2Video;
|
||||
late bool hasJump2Video = false;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
@@ -31,7 +31,7 @@ class SearchAllController
|
||||
bool customHandleResponse(bool isRefresh, Success response) {
|
||||
searchResultController?.count[searchType.index] =
|
||||
response.response.numResults ?? 0;
|
||||
if (searchType == SearchType.video && hasJump2Video != true && isRefresh) {
|
||||
if (searchType == SearchType.video && !hasJump2Video && isRefresh) {
|
||||
hasJump2Video = true;
|
||||
onPushDetail(response.response.list);
|
||||
}
|
||||
|
||||
@@ -54,8 +54,7 @@ class SearchArticleController
|
||||
builder: (context) {
|
||||
final theme = Theme.of(context);
|
||||
return SingleChildScrollView(
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: 20,
|
||||
left: 16,
|
||||
|
||||
@@ -22,6 +22,7 @@ class LiveItem extends StatelessWidget {
|
||||
cover: liveItem.cover,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
AspectRatio(
|
||||
aspectRatio: StyleString.aspectRatio,
|
||||
@@ -86,15 +87,12 @@ class LiveItem extends StatelessWidget {
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: Text(
|
||||
liveItem.uname!,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
color: theme.colorScheme.outline,
|
||||
),
|
||||
Text(
|
||||
liveItem.uname!,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
fontSize: theme.textTheme.labelMedium!.fontSize,
|
||||
color: theme.colorScheme.outline,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -34,8 +34,7 @@ class SearchUserController
|
||||
builder: (context) {
|
||||
final theme = Theme.of(context);
|
||||
return SingleChildScrollView(
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: 20,
|
||||
left: 16,
|
||||
|
||||
@@ -22,7 +22,7 @@ class SearchVideoController
|
||||
required super.tag,
|
||||
});
|
||||
|
||||
bool? hasJump2Video;
|
||||
late bool hasJump2Video = false;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
@@ -45,7 +45,7 @@ class SearchVideoController
|
||||
bool customHandleResponse(bool isRefresh, Success<SearchVideoData> response) {
|
||||
searchResultController?.count[searchType.index] =
|
||||
response.response.numResults ?? 0;
|
||||
if (searchType == SearchType.video && hasJump2Video != true && isRefresh) {
|
||||
if (searchType == SearchType.video && !hasJump2Video && isRefresh) {
|
||||
hasJump2Video = true;
|
||||
onPushDetail(response.response.list);
|
||||
}
|
||||
@@ -154,8 +154,7 @@ class SearchVideoController
|
||||
}
|
||||
|
||||
return SingleChildScrollView(
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: 20,
|
||||
left: 16,
|
||||
|
||||
Reference in New Issue
Block a user