Skip to content

Conversation

@ditingvh
Copy link

Connection with issue(s)

Resolve issue #2146

Connected to #2146

Testing and Review Notes

1.InAppWebView(
...
onShowFileChooserAndroid: (controller, type) {
return c.onShowFileChooserAndroid(
controller, type, widget.url);
},
...
)
2.about func 'onShowFileChooserAndroid' like this(
wechat_assets_picker: ^9.8.0):
Future onShowFileChooserAndroid(
controller, type, String url) async {
debugPrint('onShowFileChooserAndroid is running:$type');
List list = [];
try {
bool isAndroid = Platform.isAndroid;
final List? result = await AssetPicker.pickAssets(context);
if (result != null) {
for (int i = 0; i < result.length; i++) {
var file = await result[i].file;
if (file != null) {
list.add(file.path);
}
}
}
return list;
} catch (e) {
debugPrint("error = $e");
return [];
}
}
3.click "<input" tag in webview on Android platfom

Screenshots or Videos

To Do

must return value,even if a empty List,please
InAppWebView(
...
onShowFileChooserAndroid: (controller, type) {
return c.onShowFileChooserAndroid(
controller, type, widget.url);
},

allcontributors bot and others added 30 commits October 23, 2024 22:35
…ributors/add-nnnlog

add nnnlog as a contributor for code
…ributors/add-Murmurl912

add Murmurl912 as a contributor for code
[web] support iframe role and aria-hidden attributes
…ributors/add-bschulz87

add bschulz87 as a contributor for ideas
…ssue-1983

issue pichillilorenzo#1983: Fixed to prevent Activity from being restored
…ributors/add-ShuheiSuzuki-07

add ShuheiSuzuki-07 as a contributor for code
…_main on release mode, updated android activities restore from savedInstanceState
… pluginScriptsForMainFrameOnly InAppWebViewSettings parameters, Added setJavaScriptBridgeName, getJavaScriptBridgeName static WebView controller methods, Added JavaScriptHandlerFunctionData type, Deprecated JavaScriptHandlerCallback type in favor of JavaScriptHandlerFunction type, android: Added support for UserScript.forMainFrameOnly parameter, Updated UserScript at document end implementation
…ce, Added support for UserScript.allowedOriginRules parameter
…face, Added support for UserScript.allowedOriginRules parameter
…ace 1.4.0, Updated scrollMultiplier default value from 6 to 1, Added support for UserScript.allowedOriginRules and UserScript.forMainFrameOnly parameters, Fixed get_optional_fl_map_value implementation in utils/flutter.h
…ridgeOriginAllowList, javaScriptBridgeForMainFrameOnly, javaScriptHandlersForMainFrameOnly
…llowList, javaScriptBridgeForMainFrameOnly, javaScriptHandlersForMainFrameOnly
@probot-autolabeler probot-autolabeler bot added android documentation iOS linux Linux platform macOS macOS platform platform_interface Platform Interface plugin flutter_inappwebview plugin web windows Windows platform labels Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android documentation iOS linux Linux platform macOS macOS platform platform_interface Platform Interface plugin flutter_inappwebview plugin web windows Windows platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants