Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter webview keyboard cannot show up

I tried to integrate the webview, in the flutter app. After adding the code in the example, the page loads normally, but when I click on the input box in the page, no soft keyboard pops up,

like image 511
viveksuggu Avatar asked Apr 23 '19 06:04

viveksuggu


3 Answers

This problem only happens on Android and it is a known issue here. https://github.com/flutter/flutter/issues/19718.

If your app does not need the webview to be on the same screen with other Flutter widgets, I recommend this webview library from the Flutter community. There is no keyboard issue here. https://pub.dartlang.org/packages/flutter_webview_plugin

like image 172
Chayanin Wong Avatar answered Oct 10 '22 18:10

Chayanin Wong


I have tried multiple things but finally i have fixed it through scaffold, now my keyboard is opening.

just wrap your WebView inside Scaffold widget and apply following property inside scaffold.

resizeToAvoidBottomInset: false,
like image 44
Dhiroo Verma Avatar answered Oct 10 '22 19:10

Dhiroo Verma


I know it's late but changing the webview version to v3.0.0 actually solved the issue for me.

like image 38
Jiawei Avatar answered Oct 10 '22 20:10

Jiawei