alterada a fonte e o texto de email para login
This commit is contained in:
BIN
assets/fonts/Nunito-Regular.ttf
Normal file
BIN
assets/fonts/Nunito-Regular.ttf
Normal file
Binary file not shown.
@@ -13,13 +13,13 @@ class LoginScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _LoginScreenState extends State<LoginScreen> {
|
||||
final inputEmail = TextEditingController(text: 'teste@gmail.com');
|
||||
final inputLogin = TextEditingController(text: 'teste');
|
||||
final inputSenha = TextEditingController(text: 'senha123');
|
||||
|
||||
verificacao(){
|
||||
if(inputEmail.text.isNotEmpty){
|
||||
if(inputLogin.text.isNotEmpty){
|
||||
if(inputSenha.text.isNotEmpty){
|
||||
if(inputEmail.text == 'teste@gmail.com'){
|
||||
if(inputLogin.text == 'teste@gmail.com'){
|
||||
if(inputSenha.text == 'senha123'){
|
||||
showSnackBar(context, 'Acesso validado', Colors.green);
|
||||
Navigator.pushReplacement(
|
||||
@@ -59,8 +59,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
width: width>900? width * 0.18:width*0.5,
|
||||
child: InputText(
|
||||
inputFormatters: [],
|
||||
controller: inputEmail,
|
||||
title: 'E-mail',
|
||||
controller: inputLogin,
|
||||
title: 'Login',
|
||||
width: width>900? width * 0.18:width*0.5,
|
||||
colorBorder: PaletteColors.white,
|
||||
),
|
||||
|
||||
@@ -46,6 +46,7 @@ class InputText extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: this.fontSize,
|
||||
fontFamily: 'Nunito'
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
// fillColor: PaletteColors.primaryColor,
|
||||
|
||||
@@ -26,4 +26,9 @@ flutter:
|
||||
uses-material-design: true
|
||||
|
||||
assets:
|
||||
- assets/images/
|
||||
- assets/images/
|
||||
|
||||
fonts:
|
||||
- family: Nunito
|
||||
fonts:
|
||||
- asset: assets/fonts/Nunito-Regular.ttf
|
||||
Reference in New Issue
Block a user