mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 19:28:27 +08:00
@@ -20,10 +20,10 @@ class SearchLivePanel extends CommonSearchPanel {
|
||||
}
|
||||
|
||||
class _SearchLivePanelState extends CommonSearchPanelState<SearchLivePanel,
|
||||
SearchLiveModel, SearchLiveItemModel> {
|
||||
SearchLiveData, SearchLiveItemModel> {
|
||||
@override
|
||||
late final controller = Get.put(
|
||||
SearchPanelController<SearchLiveModel, SearchLiveItemModel>(
|
||||
SearchPanelController<SearchLiveData, SearchLiveItemModel>(
|
||||
keyword: widget.keyword,
|
||||
searchType: widget.searchType,
|
||||
tag: widget.tag,
|
||||
|
||||
@@ -21,7 +21,7 @@ class LiveItem extends StatelessWidget {
|
||||
child: InkWell(
|
||||
onTap: () => Get.toNamed('/liveRoom?roomid=${liveItem.roomid}'),
|
||||
onLongPress: () => imageSaveDialog(
|
||||
title: liveItem.title?.map((item) => item['text']).join() ?? '',
|
||||
title: liveItem.title.map((item) => item.text).join(),
|
||||
cover: liveItem.cover,
|
||||
),
|
||||
child: Column(
|
||||
@@ -73,20 +73,16 @@ class LiveItem extends StatelessWidget {
|
||||
children: [
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
for (var i in liveItem.title!) ...[
|
||||
TextSpan(
|
||||
text: i['text'],
|
||||
style: TextStyle(
|
||||
letterSpacing: 0.3,
|
||||
color: i['type'] == 'em'
|
||||
? theme.colorScheme.primary
|
||||
: theme.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
]
|
||||
],
|
||||
),
|
||||
children: liveItem.title
|
||||
.map((e) => TextSpan(
|
||||
text: e.text,
|
||||
style: TextStyle(
|
||||
color: e.isEm
|
||||
? theme.colorScheme.primary
|
||||
: theme.colorScheme.onSurface,
|
||||
),
|
||||
))
|
||||
.toList()),
|
||||
),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
|
||||
Reference in New Issue
Block a user