show img menu

opt img placeholder

opt player gesture

opt pref

tweaks

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-09 12:18:32 +08:00
parent 28b69a06fa
commit d10c737a38
31 changed files with 340 additions and 178 deletions

View File

@@ -91,4 +91,19 @@ class SuperChatItem {
userInfo: userInfo ?? this.userInfo,
);
}
Map<String, dynamic> toJson() => <String, dynamic>{
'id': id,
'uid': uid,
'price': price,
'background_color': backgroundColor,
'background_bottom_color': backgroundBottomColor,
'background_price_color': backgroundPriceColor,
'message_font_color': messageFontColor,
'end_time': endTime,
'message': message,
'token': token,
'ts': ts,
'user_info': userInfo.toJson(),
};
}

View File

@@ -14,4 +14,10 @@ class UserInfo {
uname: json['uname'],
nameColor: json['name_color'] ?? '#666666',
);
Map<String, dynamic> toJson() => <String, dynamic>{
'face': face,
'uname': uname,
'name_color': nameColor,
};
}