https://pub.dev/packages/webview_flutter
![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-25-at-13.58.42.png)
![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-25-at-14.04.53.png)
dependencies:
webview_flutter: ^2.0.9
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
WebViewPage.dart
![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-25-at-14.53.49-1024x848.png)
import 'package:webview_flutter/webview_flutter.dart';
import 'dart:io';
@override
void initState() {
// TODO: implement initState
super.initState();
if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
}
![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-25-at-15.09.07-1024x830.png)
WebView(
initialUrl: '${news['url']}',
javascriptMode: JavascriptMode.unrestricted,
),
![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-25-at-15.14.18.png)
(Visited 158 times, 1 visits today)