max Tag characters now 3

This commit is contained in:
2026-03-11 20:09:11 +01:00
parent 842f2ef023
commit 03d38a0b35
3 changed files with 17 additions and 2 deletions

View File

@@ -109,14 +109,17 @@ class _CreateTeamPageState extends State<CreateTeamPage> {
controller: _tagController,
decoration: const InputDecoration(
labelText: 'Team Tag',
hintText: 'Enter team tag (e.g., ABC)',
hintText: 'Enter team tag (max 3 characters)',
),
maxLength: 5,
maxLength: 3,
textCapitalization: TextCapitalization.characters,
validator: (value) {
if (value == null || value.isEmpty) {
return 'Team tag is required';
}
if (value.length > 3) {
return 'Tag must be at most 3 characters';
}
return null;
},
),