mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 18:18:38 +00:00
opt live room
Closes #947 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -359,6 +359,40 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
PopupMenuButton(
|
PopupMenuButton(
|
||||||
icon: const Icon(Icons.more_vert, size: 20),
|
icon: const Icon(Icons.more_vert, size: 20),
|
||||||
itemBuilder: (BuildContext context) => <PopupMenuEntry>[
|
itemBuilder: (BuildContext context) => <PopupMenuEntry>[
|
||||||
|
PopupMenuItem(
|
||||||
|
onTap: () => Utils.copyText(
|
||||||
|
'https://live.bilibili.com/${_liveRoomController.roomId}',
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
|
spacing: 10,
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
Icon(
|
||||||
|
Icons.copy,
|
||||||
|
size: 19,
|
||||||
|
color: color,
|
||||||
|
),
|
||||||
|
const Text('复制链接'),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
PopupMenuItem(
|
||||||
|
onTap: () => Utils.shareText(
|
||||||
|
'https://live.bilibili.com/${_liveRoomController.roomId}',
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
|
spacing: 10,
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
Icon(
|
||||||
|
Icons.share,
|
||||||
|
size: 19,
|
||||||
|
color: color,
|
||||||
|
),
|
||||||
|
const Text('分享直播间'),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
onTap: () => PageUtils.inAppWebview(
|
onTap: () => PageUtils.inAppWebview(
|
||||||
'https://live.bilibili.com/h5/${_liveRoomController.roomId}',
|
'https://live.bilibili.com/h5/${_liveRoomController.roomId}',
|
||||||
@@ -563,7 +597,9 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
transitionDuration: const Duration(milliseconds: 500),
|
transitionDuration: fromEmote
|
||||||
|
? const Duration(milliseconds: 300)
|
||||||
|
: const Duration(milliseconds: 500),
|
||||||
transitionBuilder: (context, animation, secondaryAnimation, child) {
|
transitionBuilder: (context, animation, secondaryAnimation, child) {
|
||||||
var tween = Tween(
|
var tween = Tween(
|
||||||
begin: const Offset(0.0, 1.0),
|
begin: const Offset(0.0, 1.0),
|
||||||
|
|||||||
Reference in New Issue
Block a user