✨ Registrable
This commit is contained in:
parent
641b3b850a
commit
8f7d50c31f
@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:webview_flutter/webview_flutter.dart';
|
||||
|
||||
class AuthorizationScreen extends StatelessWidget {
|
||||
@ -22,6 +23,9 @@ class AuthorizationScreen extends StatelessWidget {
|
||||
if (request.url.startsWith('goatagent://auth')) {
|
||||
Navigator.of(context).pop(request.url);
|
||||
return NavigationDecision.prevent;
|
||||
} else if (request.url.startsWith("https://id.smartsheep.studio/auth/register")) {
|
||||
launchUrl(Uri.parse(request.url));
|
||||
return NavigationDecision.prevent;
|
||||
}
|
||||
return NavigationDecision.navigate;
|
||||
},
|
||||
|
Reference in New Issue
Block a user