mod: specify list type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-11 21:31:59 +08:00
parent da35cf471e
commit 9ce9940306
18 changed files with 61 additions and 47 deletions

View File

@@ -398,8 +398,8 @@ class VideoIntroController extends GetxController
return;
}
List addMediaIdsNew = [];
List delMediaIdsNew = [];
List<int?> addMediaIdsNew = [];
List<int?> delMediaIdsNew = [];
try {
for (var i in favFolderData.value.list!.toList()) {
bool isFaved = favIds?.contains(i.id) == true;

View File

@@ -113,7 +113,7 @@ class _PayCoinsPageState extends State<PayCoinsPage>
late AnimationController _coinFadeController;
late AnimationController _boxAnimController;
final List _images = [
final List<String> _images = [
'assets/images/paycoins/ic_thunder_1.png',
'assets/images/paycoins/ic_thunder_2.png',
'assets/images/paycoins/ic_thunder_3.png',

View File

@@ -352,10 +352,11 @@ class _VideoReplyReplyPanelState
if (res != null) {
_savedReplies[key] = null;
ReplyInfo replyInfo = Utils.replyCast(res);
List list = _videoReplyReplyController.loadingState.value is Success
? (_videoReplyReplyController.loadingState.value as Success)
.response
: <ReplyInfo>[];
List<ReplyInfo> list =
_videoReplyReplyController.loadingState.value is Success
? (_videoReplyReplyController.loadingState.value as Success)
.response
: <ReplyInfo>[];
list.insert(index + 1, replyInfo);
_videoReplyReplyController.count.value += 1;
_videoReplyReplyController.loadingState.refresh();