chore: Follow up sign in page
This commit is contained in:
parent
2e8b3c1e1e
commit
52f4e00723
1 changed files with 10 additions and 0 deletions
|
|
@ -28,6 +28,13 @@ class SignInPage extends StatelessWidget {
|
||||||
final selectedHomserver = state.selectedHomeserver;
|
final selectedHomserver = state.selectedHomeserver;
|
||||||
return LoginScaffold(
|
return LoginScaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
leading:
|
||||||
|
state.loginLoading.connectionState == ConnectionState.waiting
|
||||||
|
? CloseButton(
|
||||||
|
onPressed: () =>
|
||||||
|
viewModel.setLoginLoading(AsyncSnapshot.nothing()),
|
||||||
|
)
|
||||||
|
: BackButton(onPressed: Navigator.of(context).pop),
|
||||||
backgroundColor: theme.colorScheme.surface,
|
backgroundColor: theme.colorScheme.surface,
|
||||||
surfaceTintColor: theme.colorScheme.surface,
|
surfaceTintColor: theme.colorScheme.surface,
|
||||||
scrolledUnderElevation: 0,
|
scrolledUnderElevation: 0,
|
||||||
|
|
@ -89,6 +96,9 @@ class SignInPage extends StatelessWidget {
|
||||||
final website = server.website;
|
final website = server.website;
|
||||||
return RadioListTile.adaptive(
|
return RadioListTile.adaptive(
|
||||||
value: server,
|
value: server,
|
||||||
|
enabled:
|
||||||
|
state.loginLoading.connectionState !=
|
||||||
|
ConnectionState.waiting,
|
||||||
radioScaleFactor:
|
radioScaleFactor:
|
||||||
FluffyThemes.isColumnMode(context) ||
|
FluffyThemes.isColumnMode(context) ||
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue