|
|
@ -73,6 +73,7 @@ class _LoginPageState extends State<LoginPage> { |
|
|
|
final Env? env, |
|
|
|
final Env? env, |
|
|
|
) => |
|
|
|
) => |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
HttpHeaders.userAgentHeader: userAgentOverride(), |
|
|
|
if (env != null) ...{ |
|
|
|
if (env != null) ...{ |
|
|
|
HttpHeaders.authorizationHeader: |
|
|
|
HttpHeaders.authorizationHeader: |
|
|
|
'Basic ${base64.encode(utf8.encode('${env.testUsername}:${env.testPassword}'))}', |
|
|
|
'Basic ${base64.encode(utf8.encode('${env.testUsername}:${env.testPassword}'))}', |
|
|
@ -136,6 +137,7 @@ class _LoginPageState extends State<LoginPage> { |
|
|
|
? WebView( |
|
|
|
? WebView( |
|
|
|
javascriptMode: JavascriptMode.unrestricted, |
|
|
|
javascriptMode: JavascriptMode.unrestricted, |
|
|
|
zoomEnabled: false, |
|
|
|
zoomEnabled: false, |
|
|
|
|
|
|
|
userAgent: userAgentOverride(), |
|
|
|
onWebViewCreated: (final controller) async { |
|
|
|
onWebViewCreated: (final controller) async { |
|
|
|
_webViewController = controller; |
|
|
|
_webViewController = controller; |
|
|
|
final url = |
|
|
|
final url = |
|
|
|