feat: update dependencies, ui and linting

This commit is contained in:
Gordon Hayes
2021-11-15 12:19:31 +01:00
parent 575fa4863b
commit f9df3647a0
16 changed files with 332 additions and 315 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import 'package:intl/intl.dart';
import 'package:flutter/cupertino.dart';
String formatDate(DateTime date) {
final dateFormat = DateFormat.yMd().add_jm();
final dateFormat = DateFormat.yMd();
return dateFormat.format(date);
}
@@ -12,7 +12,7 @@ String formatDateSameWeek(DateTime date) {
if (date.day == DateTime.now().day) {
dateFormat = DateFormat('hh:mm a');
} else {
dateFormat = DateFormat('EEEE, hh:mm a');
dateFormat = DateFormat('EEEE');
}
return dateFormat.format(date);
}