update image resolution and search bar cursor color

This commit is contained in:
tzw
2025-02-10 11:23:38 +06:30
parent fb6a9f691a
commit 9fdc20a61b
13 changed files with 246 additions and 203 deletions

View File

@@ -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);
}