You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import'dart:async';
import'package:flutter/foundation.dart';
import'package:flutter/material.dart';
import'package:flutter_inappwebview/flutter_inappwebview.dart';
classExpWebViewAssetLocalLoaderPageextendsStatefulWidget {
constExpWebViewAssetLocalLoaderPage({super.key, requiredthis.gamesBaseDir, requiredthis.gameStartPath, requiredthis.gameUrl});
finalString gamesBaseDir;
finalString gameStartPath;
finalString gameUrl;
@overrideState<ExpWebViewAssetLocalLoaderPage> createState() =>_MyAppState();
}
class_MyAppStateextendsState<ExpWebViewAssetLocalLoaderPage> {
finalGlobalKey webViewKey =GlobalKey();
@overrideWidgetbuild(BuildContext context) {
InAppWebViewSettings settings =InAppWebViewSettings(
isInspectable: kDebugMode,
// Setting this off for security. Off by default for SDK versions >= 16.
allowFileAccessFromFileURLs:false,
// Off by default, deprecated for SDK versions >= 30.
allowUniversalAccessFromFileURLs:false,
// Keeping these off is less critical but still a good idea, especially if your app is not// using file:// or content:// URLs.
allowFileAccess:false,
allowContentAccess:false,
// Basic WebViewAssetLoader with custom domain
webViewAssetLoader:WebViewAssetLoader(
domain:"my.custom.domain.com",
pathHandlers: [ InternalStoragePathHandler(
directory:'${widget.gamesBaseDir}/${widget.gameStartPath}/',
path:'/${widget.gameStartPath}/')
]));
returnScaffold(
appBar:AppBar(
title:constText('WebView Asset Loader'),
),
body:Column(children:<Widget>[
Expanded(
child:InAppWebView(
key: webViewKey,
initialUrlRequest:URLRequest(
url:WebUri(
"https://my.custom.domain.com/${widget.gameUrl}")),
initialSettings: settings,
)),
]));
}
}
Is there an existing issue for this?
Current Behavior
call stack overflow dart when using a Internal
Expected Behavior
No stack call overflow
Steps with code example to reproduce
Steps with code example to reproduce
Stacktrace/Logs
Stacktrace/Logs
Flutter version
3.22.3
Operating System, Device-specific and/or Tool
Android
Plugin version
v6.0.0
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: