TF-313 Apply new ui for subject, address, body EmailView

This commit is contained in:
dab246
2022-03-09 17:45:34 +07:00
committed by Dat H. Pham
parent 9ce398d937
commit a59ef34df4
12 changed files with 269 additions and 66 deletions
@@ -39,4 +39,15 @@ extension DateTimeNullableExtension on DateTime? {
}
return 'yMMMd';
}
String toPatternForEmailView() {
if (this != null) {
if (this!.isThisYear()) {
return 'dd.MM, HH:mm';
} else {
return 'dd/MM/yyyy';
}
}
return 'dd/MM/yyyy';
}
}