Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 23, 2020 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/70273bc040b302c76df159946835e61b to your computer and use it in GitHub Desktop.
Save parzibyte/70273bc040b302c76df159946835e61b to your computer and use it in GitHub Desktop.
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