You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
624 B
24 lines
624 B
import 'dart:io';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:webview_flutter/webview_flutter.dart';
|
|
|
|
class WebViewExample extends StatefulWidget {
|
|
@override
|
|
WebViewExampleState createState() => WebViewExampleState();
|
|
}
|
|
|
|
class WebViewExampleState extends State<WebViewExample> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
// Enable hybrid composition.
|
|
if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return WebView(
|
|
initialUrl: 'https://kiwiirc.com/client/chat.freenode.net/%23ozgurkon',
|
|
);
|
|
}
|
|
}
|
|
|