mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-16 22:30:16 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -97,7 +97,7 @@ class LiveController extends CommonListController {
|
||||
isLogin: isLogin.value,
|
||||
moduleSelect: true,
|
||||
);
|
||||
if (res is Success) {
|
||||
if (res.isSuccess) {
|
||||
final data = res.data;
|
||||
topState.value = Pair(
|
||||
first: data.followItem,
|
||||
|
||||
@@ -130,11 +130,12 @@ class LiveCardV extends StatelessWidget {
|
||||
style: const TextStyle(fontSize: 11, color: Colors.white),
|
||||
semanticsLabel: "${liveItem.areaName}直播",
|
||||
),
|
||||
Text(
|
||||
liveItem.watchedShow!['text_small'],
|
||||
style: const TextStyle(fontSize: 11, color: Colors.white),
|
||||
semanticsLabel: "${liveItem.watchedShow?['text_small']}围观",
|
||||
),
|
||||
if (liveItem.watchedShow!.textSmall != null)
|
||||
Text(
|
||||
liveItem.watchedShow!.textSmall!,
|
||||
style: const TextStyle(fontSize: 11, color: Colors.white),
|
||||
semanticsLabel: "${liveItem.watchedShow?.textSmall}围观",
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user