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.
30 lines
686 B
30 lines
686 B
import 'dart:io';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:teso/util/consts.dart';
|
|
import 'package:webview_flutter/webview_flutter.dart';
|
|
|
|
class WebViews extends StatefulWidget {
|
|
@override
|
|
_WebViewsState createState() => _WebViewsState();
|
|
}
|
|
|
|
class _WebViewsState extends State<WebViews> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
centerTitle: true,
|
|
title: Text("Teso Support"),
|
|
),
|
|
body: WebView(
|
|
initialUrl: serverwebHelp,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|