Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

Commit 19dfa22

Browse files
author
Luis Correa
committed
ready
1 parent 3e534e9 commit 19dfa22

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

lib/components/login_form.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ class _LoginFormState extends State<LoginForm> {
4040
key: _formKey,
4141
child: Column(
4242
children: <Widget>[
43-
Padding(
44-
padding: EdgeInsets.all(5.0),
45-
child: Text(
46-
'Login Nauta',
47-
style: TextStyle(color: Colors.blue, fontSize: 20),
48-
),
49-
),
5043
Padding(
5144
padding: EdgeInsets.all(5.0),
5245
child: TextFormField(

lib/pages/login_page.dart

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ class _LoginPageState extends State<LoginPage> {
8686
),
8787
),
8888
),
89-
Padding(
90-
padding: EdgeInsets.only(top: 10),
91-
child: wlanIp != null && ip != null
92-
? Center(child: checkIp())
93-
: null,
89+
Container(
90+
child: Padding(
91+
padding: EdgeInsets.only(left: 30, right: 30, bottom: 10),
92+
child: wlanIp != null && ip != null
93+
? Center(child: checkIp())
94+
: null,
95+
),
9496
),
9597
Container(
9698
decoration: BoxDecoration(
@@ -103,7 +105,7 @@ class _LoginPageState extends State<LoginPage> {
103105
alignment: Alignment.center,
104106
child: Center(
105107
child: Padding(
106-
padding: EdgeInsets.all(10.0),
108+
padding: EdgeInsets.only(left: 10.0, right: 10.0),
107109
child: Padding(
108110
padding: EdgeInsets.all(20.0),
109111
child: LoginForm(),
@@ -117,14 +119,17 @@ class _LoginPageState extends State<LoginPage> {
117119
}
118120

119121
Widget checkIp() {
120-
String ok = "Usted se encuentra conectado directamente a ETECSA.";
121-
String bad = "No se encuentra conectado directamente a ETECSA.";
122+
String ok =
123+
"Usted se encuentra conectado directamente a la red WIFI_ETECSA.";
124+
String bad =
125+
"Usted está pasando por un intermediario para llegar a la red WIFI_ETECSA.";
122126
bool cmp = ip == wlanIp;
123127

124128
return Text(
125129
cmp ? ok : bad,
126130
style: TextStyle(
127-
color: cmp ? Colors.green : Colors.red,
131+
color: cmp ? Colors.lightGreenAccent : Colors.pinkAccent,
132+
fontWeight: FontWeight.bold,
128133
),
129134
);
130135
}

0 commit comments

Comments
 (0)