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 { class EmoteMeta {
int? size; int? size;
List<String>? suggest; List? suggest;
String? alias; String? alias;
String? gifUrl; String? gifUrl;

View File

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

View File

@@ -54,7 +54,8 @@ class ReplyCursor {
mode = json['mode']; mode = json['mode'];
modeText = json['mode_text']; modeText = json['mode_text'];
allCount = json['all_count'] ?? 0; 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']; name = json['name'];
paginationReply = json['pagination_reply'] != null paginationReply = json['pagination_reply'] != null
? PaginationReply.fromJson(json['pagination_reply']) ? PaginationReply.fromJson(json['pagination_reply'])

View File

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