fix: in-app webview

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-15 12:57:04 +08:00
parent d9611cce80
commit e5c0fb7cb2
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ class VideoDetailData {
List<DescV2>? descV2; List<DescV2>? descV2;
int? state; int? state;
int? duration; int? duration;
Map<String, int>? rights; Map? rights;
Owner? owner; Owner? owner;
Stat? stat; Stat? stat;
String? argueMsg; String? argueMsg;

View File

@@ -244,7 +244,7 @@ class _WebviewPageNewState extends State<WebviewPageNew> {
} }
: null, : null,
shouldOverrideUrlLoading: (controller, navigationAction) async { shouldOverrideUrlLoading: (controller, navigationAction) async {
if (_inApp == false) { if (_inApp == true) {
return NavigationActionPolicy.ALLOW; return NavigationActionPolicy.ALLOW;
} }
late String url = navigationAction.request.url.toString(); late String url = navigationAction.request.url.toString();