The Example will show about webview in flutter example. This article will creating a simple application using Flutter embed webview. You can read other article with flutter  in this section :

First, we must create a project using Visual Studio Code software with name “webview”. Let’s to create a new project using Visual Studio Code:

  1. Invoke View > Command Palette.
  2. Type “flutter”, and select the Flutter: New Project.
  3. Enter a project name, example such as “webview”, and press Enter.
  4. Create or select the parent directory for the new project folder.
  5. Wait for project creation progress to complete and the main.dart file to appear.


This example using  webview flutter plugin webview_flutter: ^0.3.3.  Edit file pubspec.yaml in your directory should look something like and then update webview flutter package.

You must use flutter webview container for custom widget, create file with name web_view_container.dart like below :

We need Home Screen to show single button that opens a URL. Create file with name Home.dart and you can put your link in this file.

And then modify file main.dart to completed like below :

After finish copy the main.dart, runing application and will show output :

















You can see webview in flutter example in Here.

Thank you for reading this article about Webview in Flutter Example, I hope this article is useful for you. Visit My Github about Flutter in Here

Webview in Flutter Example

Leave a Reply

Your email address will not be published. Required fields are marked *