mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 16:48:43 +00:00
feat: richtextfield
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -606,8 +606,16 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
return LiveSendDmPanel(
|
||||
fromEmote: fromEmote,
|
||||
liveRoomController: _liveRoomController,
|
||||
initialValue: _liveRoomController.savedDanmaku,
|
||||
onSave: (msg) => _liveRoomController.savedDanmaku = msg.text,
|
||||
items: _liveRoomController.savedDanmaku,
|
||||
onSave: (msg) {
|
||||
if (msg.isEmpty) {
|
||||
_liveRoomController
|
||||
..savedDanmaku?.clear()
|
||||
..savedDanmaku = null;
|
||||
} else {
|
||||
_liveRoomController.savedDanmaku = msg.toList();
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
transitionDuration: const Duration(milliseconds: 500),
|
||||
|
||||
Reference in New Issue
Block a user