mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-29 05:40:17 +08:00
* opt: danmaku weight
* opt: cache clean
* opt: level img
* opt: play icon
* opt: svg big-vip
* opt: webview ua
* opt: simple dialog
* feat: export vtt
* tweak
* opt: mapIndexed
* feat: more subtitle
* refa: settings page
* feat: codec list options
* drawPath
Signed-off-by: dom <githubaccount56556@proton.me>
* custom dialog option
Signed-off-by: dom <githubaccount56556@proton.me>
* update
Signed-off-by: dom <githubaccount56556@proton.me>
* Revert "drawPath"
This reverts commit e8a4b19f0f.
* opt: _initStreamIndex
* fix: avoid gap
* fix: scale [skip ci]
* fix: hide repost menu not login
* tweaks
Signed-off-by: dom <githubaccount56556@proton.me>
---------
Co-authored-by: dom <githubaccount56556@proton.me>
78 lines
2.4 KiB
Dart
78 lines
2.4 KiB
Dart
import 'package:PiliPlus/common/widgets/pendant_avatar.dart';
|
|
import 'package:PiliPlus/models/search/result.dart';
|
|
import 'package:PiliPlus/utils/bili_utils.dart';
|
|
import 'package:PiliPlus/utils/num_utils.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get_core/src/get_main.dart';
|
|
import 'package:get/get_navigation/src/extension_navigation.dart';
|
|
|
|
class SearchUserItem extends StatelessWidget {
|
|
const SearchUserItem({
|
|
super.key,
|
|
required this.item,
|
|
});
|
|
|
|
final SearchUserItemModel item;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final theme = Theme.of(context);
|
|
final style = TextStyle(
|
|
fontSize: theme.textTheme.labelSmall!.fontSize,
|
|
color: theme.colorScheme.outline,
|
|
);
|
|
return Material(
|
|
type: MaterialType.transparency,
|
|
child: InkWell(
|
|
onTap: () => Get.toNamed('/member?mid=${item.mid}'),
|
|
child: Row(
|
|
children: [
|
|
const SizedBox(width: 15),
|
|
PendantAvatar(
|
|
item.upic,
|
|
size: 42,
|
|
officialType: item.officialVerify?.type,
|
|
liveBottom: -5,
|
|
liveFontSize: 11,
|
|
roomId: item.isLive == 1 ? item.roomId : null,
|
|
),
|
|
const SizedBox(width: 10),
|
|
Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Row(
|
|
children: [
|
|
Text(
|
|
item.uname!,
|
|
style: const TextStyle(
|
|
fontSize: 14,
|
|
),
|
|
),
|
|
const SizedBox(width: 6),
|
|
BiliUtils.levelPicture(
|
|
item.level!,
|
|
isSeniorMember: item.isSeniorMember == 1,
|
|
height: 11,
|
|
),
|
|
],
|
|
),
|
|
Text(
|
|
'粉丝:${NumUtils.numFormat(item.fans)} 视频:${NumUtils.numFormat(item.videos)}',
|
|
style: style,
|
|
),
|
|
if (item.officialVerify?.desc?.isNotEmpty == true)
|
|
Text(
|
|
item.officialVerify!.desc!,
|
|
style: style,
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|