24 lines
588 B
Dart
24 lines
588 B
Dart
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(),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|