mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 23:42:00 +01:00
now it is fixed for null check
This commit is contained in:
@@ -246,7 +246,7 @@ class _AuthCardState extends State<AuthCard> {
|
||||
textInputAction: TextInputAction.next,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
validator: (value) {
|
||||
if (value.isEmpty) {
|
||||
if (value==null || value.isEmpty) {
|
||||
return AppLocalizations.of(context).invalidUsername;
|
||||
}
|
||||
if (!RegExp(r'^[\w.@+-]+$').hasMatch(value!)) {
|
||||
|
||||
Reference in New Issue
Block a user