mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: open in browser
Closes #140 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -292,21 +292,11 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
),
|
||||
//内置浏览器打开
|
||||
IconButton(
|
||||
tooltip: '内置浏览器打开',
|
||||
tooltip: '浏览器打开',
|
||||
onPressed: () {
|
||||
Get.offNamed(
|
||||
'/webview',
|
||||
parameters: {
|
||||
'url':
|
||||
'https://live.bilibili.com/h5/${_liveRoomController.roomId}',
|
||||
'type': 'liveRoom',
|
||||
'pageTitle': _liveRoomController
|
||||
.roomInfoH5
|
||||
.value
|
||||
.anchorInfo!
|
||||
.baseInfo!
|
||||
.uname!,
|
||||
},
|
||||
Utils.handleWebview(
|
||||
'https://live.bilibili.com/h5/${_liveRoomController.roomId}',
|
||||
off: true,
|
||||
);
|
||||
},
|
||||
icon: const Icon(Icons.open_in_browser)),
|
||||
|
||||
Reference in New Issue
Block a user