How to add a Webview in Flutter?

0 votes

Hi Guys,

I am new to Flutter App. I want to add a WebView as a full page but couldn't find any sample code to do it. Can anyone help me?

Sep 15 in Others by akhtar
• 28,620 points
31 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to use a plugin to do this task.  You can find several plugins for that. One of them is webview_flutter. You need to install this and after that use the below code in your flutter program.

import 'package:webview_flutter/webview_flutter.dart';

return Scaffold(
      appBar: AppBar(
        title: const Text('Flutter WebView example'),
      ),
      body: const WebView(
        initialUrl: 'https://flutter.io',
        javascriptMode: JavascriptMode.unrestricted,
      ),
    );
answered Sep 15 by MD
• 66,300 points

Related Questions In Others

0 votes
1 answer

How to add a border in a Container in Flutter?

Hi@MD, By default, you can't see any border ...READ MORE

answered Sep 10 in Others by akhtar
• 28,620 points
129 views
0 votes
1 answer

How to add a Header Row to a ListView in Flutter?

Hi@akhtar, You can use ListView.builder method in your ...READ MORE

answered Sep 15 in Others by MD
• 66,300 points
133 views
0 votes
1 answer

How to create a Project in Flutter?

Hi@akhtar, Flutter has an inbuilt command to create ...READ MORE

answered Jul 20 in Others by MD
• 66,300 points
56 views
0 votes
1 answer

How to create a Volume Icon in Flutter App?

Hi@akhtar, You can use Icon Widget to create ...READ MORE

answered Jul 24 in Others by MD
• 66,300 points
119 views
0 votes
1 answer

What is the future of flutter?

Hi@MD, Flutter is a rather new cross-platform framework ...READ MORE

answered Jul 17 in Others by akhtar
• 28,620 points
61 views
0 votes
1 answer

What is Flutter?

Hi@akhtar, Flutter is an app SDK for building ...READ MORE

answered Jul 17 in Others by MD
• 66,300 points
102 views
0 votes
1 answer

How to install Flutter in Windows system?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jul 17 in Others by MD
• 66,300 points
134 views
0 votes
1 answer

How to add a border to a widget in Flutter?

Hi@akhtar, You need to add the TextField as a child to a Container that has ...READ MORE

answered Jul 24 in Others by MD
• 66,300 points
119 views
0 votes
1 answer

How to add a send button inside TextField in Flutter?

Hi@akhtar, You can use decoration inside your TextField. ...READ MORE

answered Sep 10 in Others by MD
• 66,300 points
208 views