Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Syed-Waleed-Shah
Created May 30, 2021 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Syed-Waleed-Shah/544ad56572e33d8c7741c180869841b9 to your computer and use it in GitHub Desktop.
Save Syed-Waleed-Shah/544ad56572e33d8c7741c180869841b9 to your computer and use it in GitHub Desktop.
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