update
This commit is contained in:
@@ -44,31 +44,27 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: SharedBackground(
|
||||
child: SingleChildScrollView(
|
||||
child: SizedBox(
|
||||
height: MediaQuery.sizeOf(context).height,
|
||||
width: MediaQuery.sizeOf(context).width,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
Column(
|
||||
children: [
|
||||
const Spacer(),
|
||||
Expanded(
|
||||
flex: 4,
|
||||
child: Image.asset(
|
||||
ImageConstants.instance.getImage("logo"),
|
||||
height: context.dynamicHeight(0.2),
|
||||
),
|
||||
const SizedBox(height: 100.0,),
|
||||
Image.asset(
|
||||
ImageConstants.instance.getImage("lo-go"),
|
||||
height: context.dynamicHeight(0.1),
|
||||
),
|
||||
const Spacer(),
|
||||
],
|
||||
),
|
||||
SizedBox(
|
||||
height: context.mediumValue,
|
||||
),
|
||||
|
||||
StreamBuilder<Map<String, dynamic>>(
|
||||
stream: loginBloc.streamLoginRequest,
|
||||
builder: (context, loginResquestSnapshot) {
|
||||
return Padding(
|
||||
padding: context.paddingLow,
|
||||
padding: context.paddingMediumHorizontal,
|
||||
child: Form(
|
||||
key: _formKey,
|
||||
child: Column(
|
||||
@@ -144,21 +140,26 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
},
|
||||
),
|
||||
SizedBox(
|
||||
height: context.lowValue,
|
||||
height: context.mediumValue,
|
||||
),
|
||||
ElevatedButton(
|
||||
style: const ButtonStyle(
|
||||
backgroundColor:
|
||||
WidgetStatePropertyAll(Colors.blue),
|
||||
foregroundColor:
|
||||
WidgetStatePropertyAll(Colors.white),
|
||||
SizedBox(
|
||||
width: MediaQuery.sizeOf(context).width,
|
||||
height: 50.0,
|
||||
child: ElevatedButton(
|
||||
style: const ButtonStyle(
|
||||
backgroundColor:
|
||||
WidgetStatePropertyAll(Colors.blue),
|
||||
foregroundColor:
|
||||
WidgetStatePropertyAll(Colors.white),
|
||||
),
|
||||
onPressed: () {
|
||||
validate();
|
||||
},
|
||||
child: Text(
|
||||
appLocalization(context).login_button_content),
|
||||
),
|
||||
onPressed: () {
|
||||
validate();
|
||||
},
|
||||
child: Text(
|
||||
appLocalization(context).login_button_content),
|
||||
),
|
||||
const SizedBox(height: 100.0,)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user