mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 06:15:51 +08:00
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user