Enhanced auth web UX
This commit is contained in:
parent
eba2a1ded3
commit
81ae064db7
|
@ -18,25 +18,24 @@ class AuthWebView extends StatelessWidget {
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(I18n.of(context).authentication),
|
title: Text(I18n.of(context).authentication),
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.arrow_back),
|
icon: Icon(Icons.close),
|
||||||
onPressed: () {
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
},
|
|
||||||
),
|
|
||||||
actions: <Widget>[
|
|
||||||
IconButton(
|
|
||||||
icon: Icon(Icons.check),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
onAuthDone();
|
onAuthDone();
|
||||||
},
|
},
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
body: WebView(
|
),
|
||||||
|
body: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
LinearProgressIndicator(),
|
||||||
|
Expanded(
|
||||||
|
child: WebView(
|
||||||
initialUrl: url,
|
initialUrl: url,
|
||||||
javascriptMode: JavascriptMode.unrestricted,
|
javascriptMode: JavascriptMode.unrestricted,
|
||||||
|
onPageStarted: (s) => print("onPageStarted: " + s),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue