Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-22 21:13:16 +08:00
parent 55bed2e830
commit e770e39c8f
59 changed files with 1388 additions and 1265 deletions

View File

@@ -276,9 +276,10 @@ class _WhisperDetailPageState
),
Obx(
() {
final enablePublish = this.enablePublish.value;
return IconButton(
onPressed: () async {
if (enablePublish.value) {
if (enablePublish) {
_whisperDetailController.sendMsg(
message: editController.rawText,
onClearText: editController.clear,
@@ -325,10 +326,10 @@ class _WhisperDetailPageState
}
}
},
icon: Icon(enablePublish.value
icon: Icon(enablePublish
? Icons.send
: Icons.add_photo_alternate_outlined),
tooltip: enablePublish.value ? '发送' : '图片',
tooltip: enablePublish ? '发送' : '图片',
);
},
),

View File

@@ -323,7 +323,7 @@ class ChatItem extends StatelessWidget {
if (cid != null) {
PageUtils.toVideoPage(
'bvid=$bvid&cid=$cid',
arguments: <String, String?>{
arguments: {
'pic': i['cover_url'],
'heroTag': Utils.makeHeroTag(bvid),
},
@@ -413,7 +413,7 @@ class ChatItem extends StatelessWidget {
PageUtils.toVideoPage(
'bvid=$bvid&cid=$cid',
arguments: {
'pic': content['thumb'],
'pic': content['cover'],
'heroTag': Utils.makeHeroTag(bvid),
},
);
@@ -496,7 +496,7 @@ class ChatItem extends StatelessWidget {
if (cid != null) {
PageUtils.toVideoPage(
'bvid=$bvid&cid=$cid',
arguments: <String, String?>{
arguments: {
'pic': content['thumb'],
'heroTag': Utils.makeHeroTag(bvid),
},