From 58ff62048ba4e0493413308156d72aac5a0c949b Mon Sep 17 00:00:00 2001 From: JustinBenito <83128918+JustinBenito@users.noreply.github.com> Date: Fri, 30 Sep 2022 23:51:25 +0530 Subject: [PATCH] Removing Bug which allows users to enter whitespace which is not accepted. Users mistakenly enter space which strikes an error, to stop this, entering space is ignored and not included, instead of throwing an error. --- lib/screens/auth_screen.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart index 6a80be1b4..d3d77caef 100644 --- a/lib/screens/auth_screen.dart +++ b/lib/screens/auth_screen.dart @@ -221,6 +221,7 @@ class _AuthCardState extends State { } return null; }, + inputFormatters: [FilteringTextInputFormatter.deny(new RegExp(r"\s\b|\b\s"))], onSaved: (value) { _authData['username'] = value!; },