fix: emote

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-15 13:52:12 +08:00
parent e52934093a
commit be03377449
4 changed files with 6 additions and 5 deletions

View File

@@ -237,7 +237,7 @@ class Emote {
class EmoteMeta {
int? size;
List<String>? suggest;
List? suggest;
String? alias;
String? gifUrl;

View File

@@ -237,7 +237,7 @@ class Emote {
class EmoteMeta {
int? size;
List<String>? suggest;
List? suggest;
String? alias;
String? gifUrl;

View File

@@ -54,7 +54,8 @@ class ReplyCursor {
mode = json['mode'];
modeText = json['mode_text'];
allCount = json['all_count'] ?? 0;
supportMode = json['support_mode'].cast<int>();
supportMode =
(json['support_mode'] as List?)?.map((e) => e as int).toList();
name = json['name'];
paginationReply = json['pagination_reply'] != null
? PaginationReply.fromJson(json['pagination_reply'])

View File

@@ -7,7 +7,7 @@ import '../../http/reply.dart';
class EmotePanelController extends CommonController
with GetTickerProviderStateMixin {
late TabController tabController;
TabController? tabController;
@override
void onInit() {
@@ -29,7 +29,7 @@ class EmotePanelController extends CommonController
@override
void onClose() {
tabController.dispose();
tabController?.dispose();
super.onClose();
}
}