import 'dart:io'; import 'package:flutter/material.dart'; import 'package:teso/util/consts.dart'; import 'package:webview_flutter/webview_flutter.dart'; class Privacy extends StatefulWidget { @override _PrivacyState createState() => _PrivacyState(); } class _PrivacyState extends State { @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 Terms and Privacy"), ), body: WebView( initialUrl: serverwebPrivacy, ), ); } }