Created
May 30, 2021 16:37
-
-
Save Syed-Waleed-Shah/4e35450389ae991d6c498a4229685ce2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:webview_flutter/webview_flutter.dart'; | |
class HomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
double height = MediaQuery.of(context).size.height; | |
double width = MediaQuery.of(context).size.height; | |
return SafeArea( | |
child: Scaffold( | |
body: Container( | |
height: height, | |
width: width, | |
child: WebView( | |
initialUrl: "https://google.com", | |
javascriptMode: JavascriptMode.unrestricted, | |
), | |
), | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment