@@ -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