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> {
|
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,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -26,4 +26,9 @@ flutter:
|
|||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
- assets/images/
|
- assets/images/
|
||||||
|
|
||||||
|
fonts:
|
||||||
|
- family: Nunito
|
||||||
|
fonts:
|
||||||
|
- asset: assets/fonts/Nunito-Regular.ttf
|
||||||
Reference in New Issue
Block a user