feat: transaction

This commit is contained in:
2024-03-05 15:25:44 +07:00
parent ff515e2621
commit 6f5d3ccca8
19 changed files with 509 additions and 68 deletions

View File

@@ -1,3 +1,5 @@
import 'package:intl/intl.dart';
class StringUtils {
static bool emailValidation(String email) {
return RegExp(
@@ -13,4 +15,12 @@ class StringUtils {
return RegExp(r'^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*?[\W_])(?=.{8,})')
.hasMatch(password);
}
static String formatTime(DateTime? dateTime) {
if (dateTime != null) {
DateFormat formatter = DateFormat('HH:mm:ss');
return formatter.format(dateTime);
}
return '--:--:--';
}
}