Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-30 14:50:54 +08:00
parent 80fa0240e9
commit 8d94c0405f
115 changed files with 3150 additions and 1438 deletions

View File

@@ -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);
}

View File

@@ -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,

View File

@@ -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,
),
),
],

View File

@@ -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,

View File

@@ -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,