Codd

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

import 'package:flutter/material.

dart';

class LoginPage extends StatefulWidget{


@override
_LoginPageState createState() => _LoginPageState();
}

class _LoginPageState extends State<LoginPage>


{
@override
Widget build(BuildContext context)
{
return Scaffold(
backgroundColor: Colors.blue,
body: Padding(
padding: EdgeInsets.all(10),
child: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
TextFormField(
autofocus: true,
keyboardType: TextInputType.number,
style:new TextStyle(color: Colors.white, fontSize: 15),
decoration: InputDecoration(
labelText: "CPF",
labelStyle: TextStyle(color: Colors.gray)),
),
Divider(),
TextFormField(
autofocus: true,
obscureText: true,
keyboardType: TextInputType.text,
style:new TextStyle(color: Colors.white, fontSize: 15),
decoration: InputDecoration(
labelText: "Senha",
labelStyle: TextStyle(color: Colors.green)),
),
Divider(),
ButtonTheme(
height: 100.0,
child: RaisedButton(
onPressed: () => {},
child: Text(
"Entrar",
style: new TextStyle(color: Colors.yellow),
),
color: Colors.red,
),
),
],
),
),
),
);
}
}

You might also like