Posts

Showing posts with the label Flutter WebView | WebView in Flutter

Flutter WebView | WebView in Flutter

Hi, In this Flutter tutorial I am going to explain how to make flutter basic browser using webview widget. Flutter WebView is used to display a web page in flutter. The web page can be loaded from the same application or URL. It is used to display online content in the flutter widget. Incorporating the WebView plugin into your app is extremely simple. It’s just a widget like any other:  WebView(initialUrl: ‘https://flutter.io') . You can also optionally enable or disable JavaScript in your WebView with the  javascriptMode  parameter. By default, JavaScript in your WebView is disabled, so to enable it you’d construct a WebView like so: Firstly i am going to add same dependencies.   url_launcher: ^3.0.0   flutter_webview_plugin: ^0.2.1+2   share: ^0.6.3+5   swipedetector: ^1.2.0 And import package then right your code like that:- import 'package:flutter/material.dart'; import 'dart:async'; import 'package:flutter_webview_plugin/flutter_webview