A part of my app includes accessing a webpage and displaying it in a webview. As this app is likely to be used for barcode scanning, I want to prevent the keyboard from popping when the user clicks on a text field IN THE WEBVIEW.
I would also like some guidance as to how I can create a button that is always persistent in my app across all the webviews, which on pressed will pop up the keyboard. If this button is not pressed, the keyboard should not pop even if any textfield in any webview is clicked.
Thanks in advance!
Here is the code of the class that implements the webpage:
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
class WebViewWebPage extends StatelessWidget {
final String url;
WebViewWebPage({this.url});
@override
Widget build(BuildContext context) {
return WebviewScaffold(
url: url,
hidden: false,
appBar: AppBar(title: Text("Open Web Page URL in webview")),
);
}
}