opt handle res

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-25 11:16:35 +08:00
parent f29385ccef
commit fd55383778
91 changed files with 957 additions and 387 deletions

View File

@@ -697,8 +697,8 @@ class _VideoInfoState extends State<VideoInfo> {
),
),
],
if (videoIntroController.videoTags is List &&
videoIntroController.videoTags.isNotEmpty) ...[
if (videoIntroController.videoTags?.isNotEmpty ==
true) ...[
GestureDetector(
onTap: () {},
behavior: HitTestBehavior.opaque,
@@ -708,20 +708,17 @@ class _VideoInfoState extends State<VideoInfo> {
child: Wrap(
spacing: 8,
runSpacing: 8,
children: (videoIntroController.videoTags
as List)
children: videoIntroController.videoTags!
.map(
(item) => SearchText(
fontSize: 13,
text: item['tag_name'],
onTap: (_) => Get.toNamed(
text: item.tagName!,
onTap: (tagName) => Get.toNamed(
'/searchResult',
parameters: {
'keyword': item['tag_name']
},
parameters: {'keyword': tagName},
),
onLongPress: (_) =>
Utils.copyText(item['tag_name']),
onLongPress: (tagName) =>
Utils.copyText(tagName),
),
)
.toList(),