tambah lihat informasi dan halaman lainnya

This commit is contained in:
kicap
2023-07-14 11:31:03 +08:00
parent e0b5213a3b
commit 757198cb83
26 changed files with 1220 additions and 102 deletions

View File

@ -1,3 +1,5 @@
import 'package:intl/intl.dart';
class OtherFunction {
int umur(String tanggalLahir) {
// change tanggalLahir to DateTime
@ -8,4 +10,9 @@ class OtherFunction {
int year = now.year - date.year;
return year;
}
String commaFormat(int number) {
final formatter = NumberFormat('#,###');
return formatter.format(number);
}
}