Created
March 23, 2020 20:29
-
-
Save parzibyte/70273bc040b302c76df159946835e61b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextFormField( | |
/*Presta atención a la siguiente línea:*/ | |
keyboardType: TextInputType.number, | |
validator: (value) { | |
if (value.isEmpty) { | |
return 'Escribe el precio de compra'; | |
} | |
return null; | |
}, | |
controller: _precioCompra, | |
decoration: InputDecoration( | |
hintText: 'Escribe el precio de compra', | |
labelText: "Precio de compra", | |
), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment