Правки + иконка
This commit is contained in:
@@ -31,12 +31,13 @@ class AuthScreen extends StatelessWidget {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: BlocBuilder<AuthCubit, AuthState>(
|
||||
builder:
|
||||
(BuildContext context, AuthState state) => state.when(
|
||||
initial: () => InitialAuth(),
|
||||
email: () => EmailAuth(),
|
||||
code: (email, uuid) => CodeAuth(email: email, uuid: uuid),
|
||||
),
|
||||
builder: (BuildContext context, AuthState state) {
|
||||
return state.when(
|
||||
initial: () => InitialAuth(),
|
||||
email: () => EmailAuth(),
|
||||
code: (email, uuid) => CodeAuth(email: email, uuid: uuid),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -50,21 +50,19 @@ class EmailAuthState extends State<EmailAuth> {
|
||||
padding: _padding,
|
||||
child: SingleChildScrollView(
|
||||
physics: BouncingScrollPhysics(),
|
||||
child: Expanded(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
HSpace(148),
|
||||
_buildLogo(),
|
||||
const HSpace(60),
|
||||
_buildEmailField(),
|
||||
const HSpace(24),
|
||||
_buildInstructions(),
|
||||
HSpace(145),
|
||||
_buildLoginButton(),
|
||||
const HSpace(104),
|
||||
],
|
||||
),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
HSpace(148),
|
||||
_buildLogo(),
|
||||
const HSpace(60),
|
||||
_buildEmailField(),
|
||||
const HSpace(24),
|
||||
_buildInstructions(),
|
||||
HSpace(145),
|
||||
_buildLoginButton(),
|
||||
const HSpace(104),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -35,19 +35,17 @@ class InitialAuth extends StatelessWidget {
|
||||
padding: _padding,
|
||||
child: SingleChildScrollView(
|
||||
physics: BouncingScrollPhysics(),
|
||||
child: Expanded(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
HSpace(148),
|
||||
_buildLogo(),
|
||||
_buildQuote(),
|
||||
HSpace(245),
|
||||
_buildLoginButton(context),
|
||||
HSpace(28),
|
||||
_buildPolicyLink(),
|
||||
_buildBottomSpacing(),
|
||||
],
|
||||
),
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
HSpace(148),
|
||||
_buildLogo(),
|
||||
_buildQuote(),
|
||||
HSpace(245),
|
||||
_buildLoginButton(context),
|
||||
HSpace(28),
|
||||
_buildPolicyLink(),
|
||||
_buildBottomSpacing(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user