fix: Minor design
This commit is contained in:
parent
9e1b27939d
commit
7a57e06dab
6 changed files with 16 additions and 16 deletions
|
|
@ -70,7 +70,7 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
child: controller.isLoading
|
||||
? LinearProgressIndicator()
|
||||
: Text(
|
||||
L10n.of(context).connect.toUpperCase(),
|
||||
L10n.of(context).connect,
|
||||
style: TextStyle(color: Colors.white, fontSize: 16),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class LoginView extends StatelessWidget {
|
|||
child: controller.loading
|
||||
? LinearProgressIndicator()
|
||||
: Text(
|
||||
L10n.of(context).login.toUpperCase(),
|
||||
L10n.of(context).login,
|
||||
style: TextStyle(color: Colors.white, fontSize: 16),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class SignUpPasswordView extends StatelessWidget {
|
|||
child: controller.loading
|
||||
? LinearProgressIndicator()
|
||||
: Text(
|
||||
L10n.of(context).createAccountNow.toUpperCase(),
|
||||
L10n.of(context).createAccountNow,
|
||||
style: TextStyle(color: Colors.white, fontSize: 16),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ class SignUpView extends StatelessWidget {
|
|||
child: controller.loading
|
||||
? LinearProgressIndicator()
|
||||
: Text(
|
||||
L10n.of(context).signUp.toUpperCase(),
|
||||
L10n.of(context).signUp,
|
||||
style: TextStyle(
|
||||
color: Colors.white, fontSize: 16),
|
||||
),
|
||||
|
|
@ -147,7 +147,7 @@ class SignUpView extends StatelessWidget {
|
|||
//elevation: 1,
|
||||
),
|
||||
onPressed: () => context.vRouter.push('/login'),
|
||||
child: Text(L10n.of(context).login.toUpperCase()),
|
||||
child: Text(L10n.of(context).login),
|
||||
),
|
||||
),
|
||||
if (controller.passwordLoginSupported &&
|
||||
|
|
@ -162,7 +162,7 @@ class SignUpView extends StatelessWidget {
|
|||
Theme.of(context).textTheme.bodyText1.color,
|
||||
),
|
||||
onPressed: controller.ssoLoginAction,
|
||||
child: Text(L10n.of(context).useSSO.toUpperCase()),
|
||||
child: Text(L10n.of(context).useSSO),
|
||||
),
|
||||
),
|
||||
]),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import 'dart:math';
|
||||
|
||||
import 'package:fluffychat/config/themes.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class OnePageCard extends StatelessWidget {
|
||||
|
|
@ -8,11 +9,10 @@ class OnePageCard extends StatelessWidget {
|
|||
const OnePageCard({Key key, this.child}) : super(key: key);
|
||||
|
||||
static const int alpha = 12;
|
||||
static const int breakpoint = 600;
|
||||
static num breakpoint = FluffyThemes.columnWidth * 2;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MediaQuery.of(context).size.width <= breakpoint ||
|
||||
MediaQuery.of(context).size.height <= breakpoint
|
||||
return MediaQuery.of(context).size.width <= breakpoint
|
||||
? child
|
||||
: Material(
|
||||
color: Theme.of(context).backgroundColor,
|
||||
|
|
@ -41,7 +41,7 @@ class OnePageCard extends StatelessWidget {
|
|||
vertical:
|
||||
max((MediaQuery.of(context).size.height - 800) / 2, 12),
|
||||
),
|
||||
child: SafeArea(child: Card(child: child)),
|
||||
child: SafeArea(child: Card(elevation: 1, child: child)),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue