mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 02:56:58 +08:00
@@ -420,21 +420,18 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
actions: [
|
||||
IconButton(
|
||||
tooltip: '刷新',
|
||||
onPressed: () {
|
||||
_futureBuilderFuture = _liveRoomController.queryLiveInfo();
|
||||
},
|
||||
onPressed: () =>
|
||||
_futureBuilderFuture = _liveRoomController.queryLiveInfo(),
|
||||
icon: const Icon(Icons.refresh),
|
||||
),
|
||||
PopupMenuButton(
|
||||
icon: const Icon(Icons.more_vert, size: 19),
|
||||
itemBuilder: (BuildContext context) => <PopupMenuEntry>[
|
||||
PopupMenuItem(
|
||||
onTap: () {
|
||||
PageUtils.inAppWebview(
|
||||
'https://live.bilibili.com/h5/${_liveRoomController.roomId}',
|
||||
off: true,
|
||||
);
|
||||
},
|
||||
onTap: () => PageUtils.inAppWebview(
|
||||
'https://live.bilibili.com/h5/${_liveRoomController.roomId}',
|
||||
off: true,
|
||||
),
|
||||
child: const Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
@@ -590,9 +587,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
onSendDanmaku(true);
|
||||
},
|
||||
onPressed: () => onSendDanmaku(true),
|
||||
icon: Icon(Icons.emoji_emotions_outlined, color: _color),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -80,9 +80,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
|
||||
height: 35,
|
||||
padding: const EdgeInsets.only(left: 30),
|
||||
value: boxFit,
|
||||
onTap: () {
|
||||
plPlayerController.toggleVideoFit(boxFit);
|
||||
},
|
||||
onTap: () => plPlayerController.toggleVideoFit(boxFit),
|
||||
child: Text(
|
||||
boxFit.desc,
|
||||
style:
|
||||
@@ -116,9 +114,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
|
||||
height: 35,
|
||||
padding: const EdgeInsets.only(left: 30),
|
||||
value: e['code'],
|
||||
onTap: () {
|
||||
liveRoomCtr.changeQn(e['code']);
|
||||
},
|
||||
onTap: () => liveRoomCtr.changeQn(e['code']),
|
||||
child: Text(
|
||||
e['desc'],
|
||||
style:
|
||||
|
||||
@@ -90,10 +90,9 @@ class LiveRoomChat extends StatelessWidget {
|
||||
size: 20,
|
||||
),
|
||||
label: const Text('回到底部'),
|
||||
onPressed: () {
|
||||
liveRoomController.disableAutoScroll.value = false;
|
||||
liveRoomController.scrollToBottom();
|
||||
},
|
||||
onPressed: () => liveRoomController
|
||||
..disableAutoScroll.value = false
|
||||
..scrollToBottom(),
|
||||
),
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
|
||||
Reference in New Issue
Block a user