WebView for Flutter (Just 23 Lines of code)

A Flutter plugin that provides a WebView widget.

The real power of WebViews in Flutter

With Flutter:

$ flutter pub add webview_flutter

This will add a line like this to your package’s pubspec.yaml (and run an implicit dart pub get):

webview_flutter: ^2.0.10

Import it

import 'package:webview_flutter/webview_flutter.dart';
import 'package:flutter/material.dart';
class View extends StatelessWidget {@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,

title: "Pathfinder for TravelOka",
home: Scaffold(


title: Text('Buy Air Ticket Online'),
body: WebView(initialUrl: "https://jahorularif.medium.com/",
javascriptMode: JavascriptMode.unrestricted,



Click this link for more knowledge https://pub.dev/packages/webview_flutter

On iOS the WebView widget is backed by a WKWebView; On Android, the WebView widget is backed by a WebView.

Contact me for any queries:
Email: jahorularif@gmail.com


Md Ariful Islam

Final Year Software Engineering Student

Universiti Teknologi Malaysia (UTM)

Associate Software Engineer