mod: use inappwebview

This commit is contained in:
bggRGjQaUbCoE
2024-09-06 17:58:08 +08:00
parent c5e7943c54
commit 365d2bc643
24 changed files with 310 additions and 43 deletions

View File

@@ -144,7 +144,7 @@ class IntroDetail extends StatelessWidget {
// 处理点击事件
try {
Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url': match.group(0)!,
'type': 'url',

View File

@@ -625,7 +625,7 @@ InlineSpan buildContent(
),
recognizer: TapGestureRecognizer()
..onTap = () => Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url': content.vote['url'],
'type': 'vote',
@@ -814,7 +814,7 @@ InlineSpan buildContent(
// );
// } else {
// Get.toNamed(
// '/webview',
// '/webviewnew',
// parameters: {
// 'url': redirectUrl,
// 'type': 'url',
@@ -841,7 +841,7 @@ InlineSpan buildContent(
);
} else {
Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url': redirectUrl,
'type': 'url',
@@ -851,7 +851,7 @@ InlineSpan buildContent(
}
} else {
Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url': matchStr,
'type': 'url',
@@ -922,7 +922,7 @@ InlineSpan buildContent(
recognizer: TapGestureRecognizer()
..onTap = () {
Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url': patternStr,
'type': 'url',
@@ -1074,7 +1074,7 @@ InlineSpan buildContent(
),
recognizer: TapGestureRecognizer()
..onTap = () => Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url': content.richText['note']['click_url'],
'type': 'note',
@@ -1100,11 +1100,10 @@ class MorePanel extends StatelessWidget {
case 'report':
Get.back();
Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url':
'https://www.bilibili.com/h5/comment/report?mid=${item.mid}&oid=${item.oid}&pageType=1&rpid=${item.rpid}&platform=android',
'type': 'url',
},
);
break;

View File

@@ -6,7 +6,6 @@ import 'package:PiliPalaX/models/video/ai.dart';
import 'package:PiliPalaX/pages/video/detail/index.dart';
import 'package:PiliPalaX/utils/utils.dart';
class AiDetail extends StatelessWidget {
final ModelResult? modelResult;
@@ -185,7 +184,7 @@ class AiDetail extends StatelessWidget {
// 处理点击事件
try {
Get.toNamed(
'/webview',
'/webviewnew',
parameters: {
'url': match.group(0)!,
'type': 'url',