update image resolution and search bar cursor color
This commit is contained in:
@@ -404,11 +404,15 @@ String removeTrailingZeros(double number) {
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
bool isValidEmail(String email) {
|
||||
// Define a regular expression for validating an email
|
||||
final emailRegex = RegExp(r'^[^@\s]+@[^@\s]+\.[^@\s]+$');
|
||||
|
||||
// Check if the email matches the pattern
|
||||
return emailRegex.hasMatch(email);
|
||||
}
|
||||
}
|
||||
|
||||
String capitalizeFirstLetter(String text) {
|
||||
if (text.isEmpty) return text;
|
||||
return text[0].toUpperCase() + text.substring(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user