added table view with color coded severity levels

This commit is contained in:
2025-01-29 14:21:00 +01:00
parent c4007e2982
commit 647418748b
3 changed files with 78 additions and 17 deletions

View File

@@ -3,7 +3,8 @@ import 'package:intl/intl.dart' as intl;
class DateUtility {
static final intl.DateFormat _hmFormat = intl.DateFormat('Hm');
static final intl.DateFormat _ymdhmFormat = intl.DateFormat('yyyy-MM-dd H:m');
static final intl.DateFormat _ymdhmFormat =
intl.DateFormat('yyyy-MM-dd HH:mm');
static final intl.DateFormat _ymdFormat = intl.DateFormat('yyyy-MM-dd');
// private default contructor so class can't be instanciated
@@ -24,7 +25,7 @@ class DateUtility {
return _hmFormat.format(date);
}
/// Formats a date to yyyy-MM-dd H:m
/// Formats a date to yyyy-MM-dd HH:mm
static String formatDateToYmdhm(DateTime date) {
return _ymdhmFormat.format(date);
}