mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 04:55:09 +00:00
design: Login page follow up
This commit is contained in:
parent
b667e22d19
commit
b798b6dd39
1 changed files with 10 additions and 6 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue