Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
appFluetter
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nayeli Monserrat Velasco Lopez
appFluetter
Commits
b4463ec2
Commit
b4463ec2
authored
Jul 31, 2024
by
Nayeli Monserrat Velasco Lopez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nayeli.velasco' into 'master'
formulario de inicio de sesion y navegar al home See merge request
!3
parents
2cf189f1
4c05db99
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
5 deletions
+40
-5
login_page.dart
lib/src/pages/login_page.dart
+35
-5
pubspec.yaml
pubspec.yaml
+5
-0
No files found.
lib/src/pages/login_page.dart
View file @
b4463ec2
...
@@ -6,15 +6,45 @@ class LoginPage extends StatelessWidget {
...
@@ -6,15 +6,45 @@ class LoginPage extends StatelessWidget {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
return
Scaffold
(
appBar:
AppBar
(
title:
const
Text
(
'Login Page'
),
body:
Padding
(
padding:
const
EdgeInsets
.
all
(
16.0
),
child:
Center
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
// Logo
Image
.
asset
(
'assets/img/logo_visorus.jpg'
,
height:
100
,
),
const
SizedBox
(
height:
20
),
// Campo de texto para usuario
TextField
(
decoration:
const
InputDecoration
(
labelText:
'Usuario'
,
border:
OutlineInputBorder
(),
),
),
const
SizedBox
(
height:
20
),
// Campo de texto para contraseña
TextField
(
obscureText:
true
,
decoration:
const
InputDecoration
(
labelText:
'Contraseña'
,
border:
OutlineInputBorder
(),
),
),
body:
Center
(
),
child:
ElevatedButton
(
const
SizedBox
(
height:
20
),
// Botón de "Acceder"
ElevatedButton
(
onPressed:
()
{
onPressed:
()
{
Navigator
.
pushNamed
(
context
,
'home'
);
Navigator
.
pushNamed
(
context
,
'home'
);
},
},
child:
const
Text
(
'Hola login_page'
),
child:
const
Text
(
'Acceder'
),
),
],
),
),
),
),
),
);
);
...
...
pubspec.yaml
View file @
b4463ec2
...
@@ -58,6 +58,7 @@ flutter:
...
@@ -58,6 +58,7 @@ flutter:
# the material Icons class.
# the material Icons class.
uses-material-design
:
true
uses-material-design
:
true
# To add assets to your application, add an assets section, like this:
# To add assets to your application, add an assets section, like this:
# assets:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_burr.jpeg
...
@@ -88,3 +89,7 @@ flutter:
...
@@ -88,3 +89,7 @@ flutter:
#
#
# For details regarding fonts from package dependencies,
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
# see https://flutter.dev/custom-fonts/#from-packages
assets
:
-
assets/img/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment