mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 12:25:11 +00:00
chore: Login page follow up
This commit is contained in:
parent
cc873e77fb
commit
69a98d447a
3 changed files with 24 additions and 11 deletions
|
@ -2476,5 +2476,12 @@
|
|||
"report": "report",
|
||||
"signInWithPassword": "Sign in with password",
|
||||
"continueWith": "Continue with:",
|
||||
"pleaseTryAgainLaterOrChooseDifferentServer": "Please try again later or choose a different server."
|
||||
"pleaseTryAgainLaterOrChooseDifferentServer": "Please try again later or choose a different server.",
|
||||
"signInWith": "Sign in with {provider}",
|
||||
"@signInWith": {
|
||||
"type": "text",
|
||||
"placeholders": {
|
||||
"provider": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,13 +55,15 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
? const Center(child: CircularProgressIndicator.adaptive())
|
||||
: ListView(
|
||||
children: [
|
||||
if (FluffyThemes.isColumnMode(context))
|
||||
Image.asset(
|
||||
'assets/info-logo.png',
|
||||
height: 96,
|
||||
)
|
||||
else
|
||||
Image.asset('assets/banner_transparent.png'),
|
||||
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(
|
||||
|
@ -114,8 +116,11 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
height: 24,
|
||||
),
|
||||
),
|
||||
label:
|
||||
'Sign in with ${provider.name ?? provider.brand ?? L10n.of(context)!.singlesignon}',
|
||||
label: L10n.of(context)!.signInWith(
|
||||
provider.name ??
|
||||
provider.brand ??
|
||||
L10n.of(context)!.singlesignon,
|
||||
),
|
||||
onPressed: () =>
|
||||
controller.ssoLoginAction(provider.id!),
|
||||
),
|
||||
|
|
|
@ -40,7 +40,8 @@ class LoginScaffold extends StatelessWidget {
|
|||
body: body,
|
||||
bottomNavigationBar: isMobileMode
|
||||
? Material(
|
||||
color: Theme.of(context).colorScheme.onInverseSurface,
|
||||
elevation: 4,
|
||||
shadowColor: Theme.of(context).colorScheme.onBackground,
|
||||
child: const _PrivacyButtons(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue