fix: Routing glitch when using SSO on desktop
This commit is contained in:
parent
9f0bcd5523
commit
2d7301ea50
3 changed files with 54 additions and 29 deletions
|
|
@ -57,15 +57,6 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
? const Center(child: CircularProgressIndicator.adaptive())
|
||||
: ListView(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||
child: FluffyThemes.isColumnMode(context)
|
||||
? Image.asset(
|
||||
'assets/info-logo.png',
|
||||
height: 96,
|
||||
)
|
||||
: Image.asset('assets/banner_transparent.png'),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
if (errorText != null) ...[
|
||||
const Center(
|
||||
|
|
@ -97,8 +88,18 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
],
|
||||
const SizedBox(height: 36),
|
||||
] else
|
||||
Padding(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 8.0),
|
||||
child: FluffyThemes.isColumnMode(context)
|
||||
? Image.asset(
|
||||
'assets/info-logo.png',
|
||||
height: 96,
|
||||
)
|
||||
: Image.asset('assets/banner_transparent.png'),
|
||||
),
|
||||
if (identityProviders != null) ...[
|
||||
...identityProviders.map(
|
||||
(provider) => _LoginButton(
|
||||
|
|
@ -143,6 +144,8 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
style: TextButton.styleFrom(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 12),
|
||||
foregroundColor:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
onPressed: controller.restoreBackup,
|
||||
child: Text(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue