I hereby claim:
- I am sam-freeman on github.
- I am thesamfreeman (https://keybase.io/thesamfreeman) on keybase.
- I have a public key ASCNO-k7ljV3E0hDI6Qb0em_cecGE7t-Tu7Xz6xydTEyTAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
TextFormField( | |
decoration: InputDecoration( | |
border: OutlineInputBorder(), | |
labelText: "Title", | |
icon: Icon(Icons.title) | |
), | |
validator: validators.titleValidator, | |
) |
FormFieldValidator<String> titleValidator = (value) { | |
if (value.isEmpty) return "Please enter some text"; | |
if (value.length > globals.MAX_TITLE_LENGTH) return "Text too long (${value.length}) max ${globals.MAX_TITLE_LENGTH}"; | |
}; |
TextFormField( | |
decoration: InputDecoration( | |
border: OutlineInputBorder(), | |
labelText: "Title", | |
icon: Icon(Icons.title) | |
), | |
) |