Screens actualizadas

This commit is contained in:
Juan Felipe Duarte
2023-03-28 11:42:48 -05:00
parent 2c81855586
commit 5853df637a
5 changed files with 533 additions and 41 deletions
+41 -28
View File
@@ -1,10 +1,9 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:prosappco/src/provider/google_sign.dart';
import 'package:prosappco/src/screens/login.dart';
import 'package:provider/provider.dart';
// import 'package:font_awesome_flutter/font_awesome_flutter.dart';
// import 'package:prosappco/src/provider/google_sign.dart';
// import 'package:provider/provider.dart';
import 'package:prosappco/src/screens/register.dart';
class LoginEmailScreen extends StatefulWidget {
const LoginEmailScreen({super.key});
@@ -25,7 +24,7 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
body: Stack(
children: [
Container(
margin: const EdgeInsets.only(top: 170),
margin: const EdgeInsets.only(top: 130),
width: double.infinity,
height: 800,
decoration: const BoxDecoration(
@@ -35,18 +34,17 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
topLeft: Radius.circular(50))),
),
Container(
margin: const EdgeInsets.only(top: 40, left: 30),
margin: const EdgeInsets.only(top: 20, left: 30),
child: const Image(
image: AssetImage('images/logo_prosapp.png'),
width: 180,
height: 100,
// width: MediaQuery.of(context).size.width / 2,
),
),
Container(
padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 20),
margin: const EdgeInsets.only(
top: 180,
top: 125,
left: 25,
),
child: Row(
@@ -56,7 +54,9 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
Icons.arrow_back,
size: 30,
),
onPressed: () {},
onPressed: () {
Navigator.pop(context);
},
),
Text(
'Iniciar sesión',
@@ -72,7 +72,7 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
),
Container(
padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 20),
margin: const EdgeInsets.only(top: 270, left: 50, right: 50),
margin: const EdgeInsets.only(top: 210, left: 50, right: 50),
child: Column(children: [
Padding(
padding: EdgeInsets.only(bottom: 20),
@@ -83,18 +83,17 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
provider.googleLogin();
},
style: ElevatedButton.styleFrom(
primary: Color(0xFF2BA4EC), // Color del botón
primary: Color(0xFF2BA4EC),
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(50), // Bordes redondeados
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: Size(230, 60), // Tamaño mínimo del botón
minimumSize: Size(230, 60),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(width: 5), // Espacio entre el icono y el texto
SizedBox(width: 5),
Text(
'Entrar con Google ',
style: TextStyle(
@@ -102,8 +101,8 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
fontWeight: FontWeight.bold,
fontSize: 18,
),
), // Texto del botón
FaIcon(FontAwesomeIcons.google), // Icono del botón
),
FaIcon(FontAwesomeIcons.google),
],
)),
),
@@ -213,29 +212,43 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
),
),
style: ElevatedButton.styleFrom(
primary: Color(0xFF2BA4EC), // Color del botón
primary: Color(0xFF2BA4EC),
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(50), // Bordes redondeados
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: Size(230, 60), // Tamaño mínimo del botón
minimumSize: Size(230, 60),
),
)),
),
RichText(
text: const TextSpan(
text: TextSpan(
style: TextStyle(
fontSize: 16.0,
color: Color(0xFF65676B),
fontFamily: 'Poppins'),
fontSize: 16.0,
color: Color(0xFF65676B),
fontFamily: 'Poppins',
),
children: [
TextSpan(text: 'No estas registrado? '),
TextSpan(
text: 'Registrarse',
style: TextStyle(
WidgetSpan(
child: GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => RegisterScreen()),
);
},
child: Text(
'Registrarse',
style: TextStyle(
fontSize: 16.0,
color: Color(0xFF2BA4EC),
fontWeight: FontWeight.w600)),
fontWeight: FontWeight.w600,
),
),
),
),
],
),
)