mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 19:51:11 +08:00
@@ -21,6 +21,7 @@ import 'package:PiliPlus/utils/extension/theme_ext.dart';
|
||||
import 'package:PiliPlus/utils/grid.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
@@ -132,17 +133,14 @@ class _LivePageState extends CommonPageState<LivePage, LiveController>
|
||||
context: context,
|
||||
tooltip: '游戏赛事',
|
||||
icon: const Icon(Icons.gamepad),
|
||||
onPressed: () {
|
||||
final isDark = theme.brightness.isDark;
|
||||
Get.toNamed(
|
||||
'/webview',
|
||||
parameters: {
|
||||
'uaType': 'mob',
|
||||
'url':
|
||||
'https://www.bilibili.com/h5/match/data/home?navhide=1&native.theme=${isDark ? 2 : 1}&night=${isDark ? 1 : 0}',
|
||||
},
|
||||
);
|
||||
},
|
||||
onPressed: () => Get.toNamed(
|
||||
'/webview',
|
||||
parameters: {
|
||||
'uaType': 'mob',
|
||||
'url':
|
||||
'https://www.bilibili.com/h5/match/data/home?navhide=1&${Utils.themeUrl(theme.brightness.isDark)}',
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
iconButton(
|
||||
|
||||
Reference in New Issue
Block a user