added table view with color coded severity levels
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user