Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-27 20:54:41 +08:00
parent 25acf3a9bb
commit b51c646415
227 changed files with 768 additions and 764 deletions

View File

@@ -48,7 +48,7 @@ class LiveController extends CommonListController with AccountMixin {
bool customHandleResponse(bool isRefresh, Success response) {
if (isRefresh) {
final res = response.response;
if (res case LiveIndexData data) {
if (res case final LiveIndexData data) {
if (data.hasMore == 0) {
isEnd = true;
}
@@ -56,7 +56,7 @@ class LiveController extends CommonListController with AccountMixin {
first: data.followItem,
second: data.areaItem,
);
} else if (res case LiveSecondData data) {
} else if (res case final LiveSecondData data) {
count = data.count;
newTags = data.newTags;
if (sortType != null) {

View File

@@ -181,7 +181,7 @@ class _LivePageState extends CommonPageState<LivePage, LiveController>
itemBuilder: (context, index) => const VideoCardVSkeleton(),
itemCount: 10,
),
Success(:var response) => SliverMainAxisGroup(
Success(:final response) => SliverMainAxisGroup(
slivers: [
if (controller.newTags case final newTags?)
if (newTags.isNotEmpty)
@@ -247,7 +247,7 @@ class _LivePageState extends CommonPageState<LivePage, LiveController>
: HttpError(onReload: controller.onReload),
],
),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: controller.onReload,
),