feat: open in browser

Closes #140

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-11 10:05:01 +08:00
parent 54d13fe7f2
commit 2d338450f4
17 changed files with 60 additions and 166 deletions

View File

@@ -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)),