@@ -7,13 +7,30 @@ class AppStrings {
77 static const String recentSearchKey = 'recent_search' ;
88
99 // Error
10+ static const String similarUserExists = 'This user already exists. '
11+ 'Please choose different email or username.' ;
1012 static const String genericError = 'Something went wrong' ;
1113 static const String incorrectCredentials = 'Incorrect credentials' ;
14+ static const String duplicateEmail =
15+ 'This email is already in use. Use another email or log in' ;
1216 static const String noUserWithEmail =
1317 'No user associated with given email address' ;
1418 static const String passwordResetSuccess =
15- 'Success! Please check your email for a password reset link' ;
19+ 'Successful! Please check your email for a password reset link' ;
20+ static const String signUpSuccess =
21+ 'You are almost done with the sign up process. '
22+ 'Please check your email to verify this account' ;
23+ static const String duplicateUsername =
24+ 'This username is already in use. Choose another username or log in' ;
1625 static const String verifyFirst =
17- 'Please verify your email before attempting to log in\n '
26+ 'Please verify your email before attempting to log in. '
1827 'Check your email for the verification link' ;
28+ static const String wrongFormValues =
29+ 'Please fill all required values in the form correctly' ;
30+
31+ // Misc.
32+ static const String emailValidationRegex =
33+ r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))'
34+ r'@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|'
35+ r'(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$' ;
1936}
0 commit comments