opt: add live emoticonUnique

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-13 15:18:35 +08:00
parent a93fbd4444
commit d3d2715418
2 changed files with 5 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
message: emote.emoticonUnique!, message: emote.emoticonUnique!,
dmType: 1, dmType: 1,
emoticonOptions: '[object Object]', emoticonOptions: '[object Object]',
emoticonUnique: emote.emoji,
); );
}, },
), ),
@@ -218,6 +219,7 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
List? pictures, List? pictures,
int? dmType, int? dmType,
emoticonOptions, emoticonOptions,
emoticonUnique,
}) async { }) async {
if (!liveRoomController.isLogin) { if (!liveRoomController.isLogin) {
SmartDialog.showToast('未登录'); SmartDialog.showToast('未登录');
@@ -235,7 +237,7 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
SmartDialog.showToast('发送成功'); SmartDialog.showToast('发送成功');
liveRoomController.plPlayerController.danmakuController?.addDanmaku( liveRoomController.plPlayerController.danmakuController?.addDanmaku(
DanmakuContentItem( DanmakuContentItem(
message, emoticonUnique ?? message,
type: DanmakuItemType.scroll, type: DanmakuItemType.scroll,
selfSend: true, selfSend: true,
), ),

View File

@@ -263,6 +263,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
} }
Widget get _buildPH => Scaffold( Widget get _buildPH => Scaffold(
resizeToAvoidBottomInset: false,
appBar: _buildAppBar, appBar: _buildAppBar,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
body: Column( body: Column(
@@ -271,6 +272,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
); );
Widget get _buildPP => Scaffold( Widget get _buildPP => Scaffold(
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
body: Stack( body: Stack(
children: [ children: [