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
Outdated
Henry-Hiles
commented
Outdated
```diff
- onPressed: () => Navigator.pop(context),
+ onPressed: Navigator.of(context).pop,
```
istalri marked this conversation as resolved
Outdated
Henry-Hiles
commented
```diff
- onPressed: () => Navigator.of(context).pop(),
+ onPressed: Navigator.of(context).pop,
```
|
|||||||
),
|
),
|
||||||
|
Henry-Hiles marked this conversation as resolved
Outdated
Henry-Hiles
commented
bad formatting here. make sure you format your code :) bad formatting here. make sure you format your code :)
istalri
commented
Yeah I totally forgot. Autoformatting is good? like ctrl + shift + i? Yeah I totally forgot. Autoformatting is good? like ctrl + shift + i?
Henry-Hiles
commented
Yeah, that should work great. I have it set to format on save. Yeah, that should work great. I have it set to format on save.
|
|||||||
),
|
),
|
||||||
|
istalri marked this conversation as resolved
Henry-Hiles
commented
prefer prefer `Navigator.of(context).pop()`
|
|||||||
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