Skip to content

Instantly share code, notes, and snippets.

@BoHellgren
Created January 10, 2020 15:22
Show Gist options
  • Save BoHellgren/5cab84c51a8e7cbe32f56cb86e7a9d29 to your computer and use it in GitHub Desktop.
Save BoHellgren/5cab84c51a8e7cbe32f56cb86e7a9d29 to your computer and use it in GitHub Desktop.
breedinfo
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