Skip to content

Commit 4b4ba67

Browse files
authored
Merge pull request #237 from JustinBenito/patch-1
Removing Bug which allows users to enter whitespace which is not accepted as a valid username
2 parents 134cd73 + 58ff620 commit 4b4ba67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/screens/auth_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ class _AuthCardState extends State<AuthCard> {
221221
}
222222
return null;
223223
},
224+
inputFormatters: [FilteringTextInputFormatter.deny(new RegExp(r"\s\b|\b\s"))],
224225
onSaved: (value) {
225226
_authData['username'] = value!;
226227
},

0 commit comments

Comments
 (0)