Created
January 10, 2020 15:22
-
-
Save BoHellgren/5cab84c51a8e7cbe32f56cb86e7a9d29 to your computer and use it in GitHub Desktop.
breedinfo
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 BreedInfo extends StatelessWidget { | |
final String breed; | |
BreedInfo({Key key, @required this.breed}); | |
@override | |
Widget build(BuildContext context) { | |
String url = 'https://en.wikipedia.org/wiki/' + breed; | |
return Scaffold( | |
appBar: AppBar( | |
backgroundColor: Colors.black, | |
title: Text('Wikipedia about ...')), | |
body:WebView( | |
key: UniqueKey(), | |
javascriptMode: JavascriptMode.disabled, | |
initialUrl: url), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment