File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Developers
4
4
5
+ - Jigar Prajapati - < https://github.com/Jiggy9 >
5
6
- Roland Geider – < https://github.com/rolandgeider >
6
7
- Dylan Aird - < https://github.com/Dolaned >
7
8
- Jannik Norden - < https://github.com/Jannik-dev >
Original file line number Diff line number Diff line change @@ -246,12 +246,13 @@ class _AuthCardState extends State<AuthCard> {
246
246
textInputAction: TextInputAction .next,
247
247
keyboardType: TextInputType .emailAddress,
248
248
validator: (value) {
249
+ if (value== null || value.isEmpty) {
250
+ return AppLocalizations .of (context).invalidUsername;
251
+ }
249
252
if (! RegExp (r'^[\w.@+-]+$' ).hasMatch (value! )) {
250
253
return AppLocalizations .of (context).usernameValidChars;
251
254
}
252
- if (value.isEmpty) {
253
- return AppLocalizations .of (context).invalidUsername;
254
- }
255
+
255
256
return null ;
256
257
},
257
258
inputFormatters: [FilteringTextInputFormatter .deny (RegExp (r'\s\b|\b\s' ))],
You can’t perform that action at this time.
0 commit comments