import 'package:flutter/material.dart'; import 'package:webview_flutter/webview_flutter.dart'; class AuthorizationScreen extends StatelessWidget { final Uri link; const AuthorizationScreen(this.link, {super.key}); @override Widget build(BuildContext context) { return Scaffold( body: SafeArea( child: WebViewWidget( controller: WebViewController() ..setJavaScriptMode(JavaScriptMode.unrestricted) ..setBackgroundColor(Colors.white) ..loadRequest(link) ..clearCache(), ), ), ); } }