alterada a fonte e o texto de email para login

This commit is contained in:
Reginaldo
2023-05-26 17:14:45 -03:00
parent f4bccc3e24
commit 52504d8d05
4 changed files with 12 additions and 6 deletions

Binary file not shown.

View File

@@ -13,13 +13,13 @@ class LoginScreen extends StatefulWidget {
} }
class _LoginScreenState extends State<LoginScreen> { class _LoginScreenState extends State<LoginScreen> {
final inputEmail = TextEditingController(text: 'teste@gmail.com'); final inputLogin = TextEditingController(text: 'teste');
final inputSenha = TextEditingController(text: 'senha123'); final inputSenha = TextEditingController(text: 'senha123');
verificacao(){ verificacao(){
if(inputEmail.text.isNotEmpty){ if(inputLogin.text.isNotEmpty){
if(inputSenha.text.isNotEmpty){ if(inputSenha.text.isNotEmpty){
if(inputEmail.text == 'teste@gmail.com'){ if(inputLogin.text == 'teste@gmail.com'){
if(inputSenha.text == 'senha123'){ if(inputSenha.text == 'senha123'){
showSnackBar(context, 'Acesso validado', Colors.green); showSnackBar(context, 'Acesso validado', Colors.green);
Navigator.pushReplacement( Navigator.pushReplacement(
@@ -59,8 +59,8 @@ class _LoginScreenState extends State<LoginScreen> {
width: width>900? width * 0.18:width*0.5, width: width>900? width * 0.18:width*0.5,
child: InputText( child: InputText(
inputFormatters: [], inputFormatters: [],
controller: inputEmail, controller: inputLogin,
title: 'E-mail', title: 'Login',
width: width>900? width * 0.18:width*0.5, width: width>900? width * 0.18:width*0.5,
colorBorder: PaletteColors.white, colorBorder: PaletteColors.white,
), ),

View File

@@ -46,6 +46,7 @@ class InputText extends StatelessWidget {
style: TextStyle( style: TextStyle(
color: Colors.black, color: Colors.black,
fontSize: this.fontSize, fontSize: this.fontSize,
fontFamily: 'Nunito'
), ),
decoration: InputDecoration( decoration: InputDecoration(
// fillColor: PaletteColors.primaryColor, // fillColor: PaletteColors.primaryColor,

View File

@@ -27,3 +27,8 @@ flutter:
assets: assets:
- assets/images/ - assets/images/
fonts:
- family: Nunito
fonts:
- asset: assets/fonts/Nunito-Regular.ttf