This commit is contained in:
parent
c285120034
commit
b904379af7
|
@ -112,12 +112,11 @@ class _LoginPageState extends State<LoginPage> {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => new AlertDialog(
|
builder: (context) => new AlertDialog(
|
||||||
title:
|
title: Text('Login failed! Please check your server url and credentials. ' + ex.toString()),
|
||||||
const Text('Login failed! Please check you credentials.'),
|
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
FlatButton(
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
child: const Text('CLOSE'))
|
child: const Text('Close'))
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -139,12 +139,11 @@ class _RegisterPageState extends State<RegisterPage> {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => new AlertDialog(
|
builder: (context) => new AlertDialog(
|
||||||
title: const Text(
|
title: Text('Registration failed! Please check your server url and credentials. ' + ex.toString()),
|
||||||
'Registration failed! Please check your server url and credentials.'),
|
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
FlatButton(
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
child: const Text('CLOSE'))
|
child: const Text('Close'))
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Reference in New Issue
Block a user