Server selection and login are on different pages. #33
1 changed files with 2 additions and 2 deletions
Return function instead of wrapping in annoymous callback
commit
9ea6cd07a7
|
|
@ -60,7 +60,7 @@ class LoginPage extends HookConsumerWidget {
|
||||||
appBar: Appbar(
|
appBar: Appbar(
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.arrow_back),
|
icon: Icon(Icons.arrow_back),
|
||||||
onPressed: () => Navigator.of(context).pop(),
|
onPressed: Navigator.of(context).pop,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
istalri marked this conversation as resolved
|
|||||||
body: AlertDialog(
|
body: AlertDialog(
|
||||||
|
|
@ -125,7 +125,7 @@ class LoginPage extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: hasError.value ? null : () => tryLogin(),
|
onPressed: hasError.value ? null : tryLogin,
|
||||||
child: Text("Sign In"),
|
child: Text("Sign In"),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue
prefer
Navigator.of(context).pop()