design: Login page follow up

This commit is contained in:
krille-chan 2023-07-22 14:17:00 +02:00
parent b667e22d19
commit b798b6dd39
No known key found for this signature in database

View file

@ -21,6 +21,7 @@ class HomeserverPickerView extends StatelessWidget {
return LoginScaffold( return LoginScaffold(
appBar: AppBar( appBar: AppBar(
titleSpacing: 12, titleSpacing: 12,
automaticallyImplyLeading: false,
title: HomeserverAppBar(controller: controller), title: HomeserverAppBar(controller: controller),
), ),
body: SafeArea( body: SafeArea(
@ -54,10 +55,14 @@ class HomeserverPickerView extends StatelessWidget {
? const Center(child: CircularProgressIndicator.adaptive()) ? const Center(child: CircularProgressIndicator.adaptive())
: ListView( : ListView(
children: [ children: [
Image.asset( if (FluffyThemes.isColumnMode(context))
'assets/info-logo.png', Image.asset(
height: 96, 'assets/info-logo.png',
), height: 96,
)
else
Image.asset('assets/banner_transparent.png'),
const SizedBox(height: 12),
if (errorText != null) ...[ if (errorText != null) ...[
const Center( const Center(
child: Icon( child: Icon(
@ -163,8 +168,7 @@ class _LoginButton extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
padding: const EdgeInsets.symmetric(horizontal: 12), margin: const EdgeInsets.only(bottom: 12),
margin: const EdgeInsets.only(bottom: 16),
alignment: Alignment.center, alignment: Alignment.center,
child: SizedBox( child: SizedBox(
width: 256, width: 256,