Mejora de diseño

This commit is contained in:
Juan Felipe Duarte
2023-03-27 11:23:30 -05:00
parent 5e76777cc8
commit 8d815be8dc
9 changed files with 106 additions and 106 deletions
@@ -4,9 +4,9 @@
<item android:drawable="?android:colorBackground" /> <item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here --> <!-- You can insert your own image assets here -->
<!-- <item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@mipmap/launch_image" /> android:src="@mipmap/splash" />
</item> --> </item>
</layer-list> </layer-list>
@@ -4,9 +4,9 @@
<item android:drawable="@android:color/white" /> <item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here --> <!-- You can insert your own image assets here -->
<!-- <item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@mipmap/launch_image" /> android:src="@mipmap/splash" />
</item> --> </item>
</layer-list> </layer-list>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 348 KiB

+45 -45
View File
@@ -13,27 +13,31 @@ class LoginScreen extends StatefulWidget {
class _LoginScreenState extends State<LoginScreen> { class _LoginScreenState extends State<LoginScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return SafeArea(
body: SafeArea( child: Scaffold(
child: Center( resizeToAvoidBottomInset: false,
child: Column( backgroundColor: const Color.fromARGB(255, 186, 237, 255),
mainAxisAlignment: MainAxisAlignment.spaceBetween, body: Stack(
children: [ children: [
Container( Container(
color: Color.fromARGB( margin: const EdgeInsets.only(top: 300),
255, 179, 247, 252), // Establece el color de fondo width: double.infinity,
child: SizedBox( height: 600,
width: 270.0, decoration: const BoxDecoration(
child: Image(image: AssetImage('images/logo_prosapp.png'))), color: Colors.white,
borderRadius: BorderRadius.only(
topRight: Radius.circular(40),
topLeft: Radius.circular(40))),
), ),
Container( Container(
color: Colors.white, // Establece el color de fondo margin: const EdgeInsets.only(top: 100, left: 50, right: 50),
child: Column( child: const Image(image: AssetImage('images/logo_prosapp.png')),
children: [ ),
const Padding( Container(
padding: EdgeInsets.only( padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 20),
left: 16.0), // Ajusta el valor según sea necesario margin: const EdgeInsets.only(top: 300, left: 30, right: 50),
child: Align( child: Column(children: const [
Align(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
child: Text( child: Text(
'Iniciar sesión', 'Iniciar sesión',
@@ -43,13 +47,26 @@ class _LoginScreenState extends State<LoginScreen> {
), ),
), ),
), ),
]),
), ),
Container(
padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 20),
margin: const EdgeInsets.only(top: 400, left: 50, right: 50),
child: Column(children: [
const Padding( const Padding(
padding: EdgeInsets.symmetric(horizontal: 25.0), padding: EdgeInsets.only(bottom: 5),
child: Align(
alignment: Alignment.topLeft,
child: Text('Numero de celular',
style:
TextStyle(fontSize: 25.0, color: Colors.black38)),
)),
const Padding(
padding: EdgeInsets.only(bottom: 10),
child: TextField( child: TextField(
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.blue), borderSide: BorderSide(color: Colors.black12),
borderRadius: BorderRadius.all( borderRadius: BorderRadius.all(
Radius.circular(20.0), Radius.circular(20.0),
)), )),
@@ -65,30 +82,14 @@ class _LoginScreenState extends State<LoginScreen> {
prefixIcon: Icon(Icons.phone_android_outlined)), prefixIcon: Icon(Icons.phone_android_outlined)),
), ),
), ),
const Text('Un código sera enviado a este numero de celular'), const Padding(
ElevatedButton( padding: EdgeInsets.only(bottom: 100),
onPressed: () { child: Text('Un código sera enviado a este numero de celular',
final provider = textAlign: TextAlign.center,
Provider.of<GoogleSignProvider>(context, listen: false); style: TextStyle(fontSize: 15.0, color: Colors.black38)),
provider.googleLogin();
},
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
15), // Establece el radio de los bordes
),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
FaIcon(FontAwesomeIcons.google), // Icono del botón
SizedBox(width: 5), // Espacio entre el icono y el texto
Text('Entrar con Google'), // Texto del botón
],
),
), ),
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 80.0), padding: const EdgeInsets.only(left: 20, right: 20, bottom: 20),
child: Container( child: Container(
padding: const EdgeInsets.all(15), padding: const EdgeInsets.all(15),
decoration: const BoxDecoration( decoration: const BoxDecoration(
@@ -111,7 +112,7 @@ class _LoginScreenState extends State<LoginScreen> {
), ),
RichText( RichText(
text: const TextSpan( text: const TextSpan(
style: TextStyle(fontSize: 16.0, color: Colors.black54), style: TextStyle(fontSize: 16.0, color: Colors.black38),
children: [ children: [
TextSpan(text: 'No estas registrado? '), TextSpan(text: 'No estas registrado? '),
TextSpan( TextSpan(
@@ -121,11 +122,10 @@ class _LoginScreenState extends State<LoginScreen> {
], ],
), ),
) )
], ]),
),
), ),
], ],
)), ),
)); ));
} }
} }