mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: search: show user verf
Closes #322 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -99,11 +99,37 @@ Widget searchUserPanel(BuildContext context,
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(width: 15),
|
const SizedBox(width: 15),
|
||||||
NetworkImgLayer(
|
Stack(
|
||||||
width: 42,
|
clipBehavior: Clip.none,
|
||||||
height: 42,
|
children: [
|
||||||
src: i.upic,
|
NetworkImgLayer(
|
||||||
type: 'avatar',
|
width: 42,
|
||||||
|
height: 42,
|
||||||
|
src: i.upic,
|
||||||
|
type: 'avatar',
|
||||||
|
),
|
||||||
|
if (i.officialVerify?['type'] == 0 ||
|
||||||
|
i.officialVerify?['type'] == 1)
|
||||||
|
Positioned(
|
||||||
|
bottom: 0,
|
||||||
|
right: 0,
|
||||||
|
child: Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.surface,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.offline_bolt,
|
||||||
|
color: i.officialVerify?['type'] == 0
|
||||||
|
? Colors.yellow
|
||||||
|
: Colors.lightBlueAccent,
|
||||||
|
size: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
Column(
|
Column(
|
||||||
|
|||||||
@@ -772,12 +772,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
final Duration result =
|
final Duration result =
|
||||||
pos.clamp(Duration.zero, plPlayerController.duration.value);
|
pos.clamp(Duration.zero, plPlayerController.duration.value);
|
||||||
final height = renderBox.size.height * 0.125;
|
final height = renderBox.size.height * 0.125;
|
||||||
if ((details.localFocalPoint.dx >=
|
if (details.localFocalPoint.dy <= height &&
|
||||||
renderBox.size.width * 0.875 &&
|
(details.localFocalPoint.dx >=
|
||||||
details.localFocalPoint.dy <= height) ||
|
renderBox.size.width * 0.875 ||
|
||||||
(details.localFocalPoint.dx <=
|
details.localFocalPoint.dx <=
|
||||||
renderBox.size.width * 0.125 &&
|
renderBox.size.width * 0.125)) {
|
||||||
details.localFocalPoint.dy <= height)) {
|
|
||||||
plPlayerController.cancelSeek = true;
|
plPlayerController.cancelSeek = true;
|
||||||
plPlayerController.showPreview.value = false;
|
plPlayerController.showPreview.value = false;
|
||||||
if (plPlayerController.hasToast != true) {
|
if (plPlayerController.hasToast != true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user