Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-13 11:49:38 +08:00
parent f824477ddb
commit c05fbde3fa
106 changed files with 2780 additions and 3200 deletions

View File

@@ -88,21 +88,18 @@ class _LiveSearchPageState extends State<LiveSearchPage> {
},
),
Expanded(
child: Material(
color: Colors.transparent,
child: tabBarView(
controller: _controller.tabController,
children: [
LiveSearchChildPage(
controller: _controller.roomCtr,
searchType: LiveSearchType.room,
),
LiveSearchChildPage(
controller: _controller.userCtr,
searchType: LiveSearchType.user,
),
],
),
child: tabBarView(
controller: _controller.tabController,
children: [
LiveSearchChildPage(
controller: _controller.roomCtr,
searchType: LiveSearchType.room,
),
LiveSearchChildPage(
controller: _controller.userCtr,
searchType: LiveSearchType.user,
),
],
),
),
],

View File

@@ -17,10 +17,8 @@ class LiveCardVSearch extends StatelessWidget {
@override
Widget build(BuildContext context) {
String heroTag = Utils.makeHeroTag(item.roomid);
return Card(
clipBehavior: Clip.hardEdge,
margin: EdgeInsets.zero,
child: InkWell(
onTap: () => Get.toNamed('/liveRoom?roomid=${item.roomid}'),
onLongPress: () => imageSaveDialog(
@@ -38,13 +36,11 @@ class LiveCardVSearch extends StatelessWidget {
return Stack(
clipBehavior: Clip.none,
children: [
Hero(
tag: heroTag,
child: NetworkImgLayer(
src: item.cover!,
width: maxWidth,
height: maxHeight,
),
NetworkImgLayer(
src: item.cover!,
width: maxWidth,
height: maxHeight,
radius: 0,
),
Positioned(
left: 0,

View File

@@ -20,47 +20,50 @@ class LiveSearchUserItem extends StatelessWidget {
fontSize: 13,
color: theme.colorScheme.outline,
);
return InkWell(
onTap: () => Get.toNamed(
'/liveRoom?roomid=${item.roomid}',
),
child: Row(
children: [
const SizedBox(width: 15),
NetworkImgLayer(
src: item.face,
width: 42,
height: 42,
type: ImageType.avatar,
),
const SizedBox(width: 10),
Column(
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
children: [
Text(
item.name!,
style: const TextStyle(
fontSize: 14,
return Material(
type: MaterialType.transparency,
child: InkWell(
onTap: () => Get.toNamed(
'/liveRoom?roomid=${item.roomid}',
),
child: Row(
children: [
const SizedBox(width: 15),
NetworkImgLayer(
src: item.face,
width: 42,
height: 42,
type: ImageType.avatar,
),
const SizedBox(width: 10),
Column(
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
children: [
Text(
item.name!,
style: const TextStyle(
fontSize: 14,
),
),
),
if (item.liveStatus == 1) ...[
const SizedBox(width: 10),
Image.asset(height: 14, 'assets/images/live/live.gif'),
if (item.liveStatus == 1) ...[
const SizedBox(width: 10),
Image.asset(height: 14, 'assets/images/live/live.gif'),
],
],
],
),
const SizedBox(height: 2),
Text(
'分区: ${item.areaName ?? ''} 关注数: ${Utils.numFormat(item.fansNum ?? 0)}',
style: style,
),
],
)
],
),
const SizedBox(height: 2),
Text(
'分区: ${item.areaName ?? ''} 关注数: ${Utils.numFormat(item.fansNum ?? 0)}',
style: style,
),
],
)
],
),
),
);
}