|
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_export.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/enums.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/date_util.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
|
|
|
|
|
@ -144,7 +145,16 @@ class TrackerLastValueCard extends StatelessWidget {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
final formattedDate = lastDate != null ? DateFormat('EEE DD MMM, yy').format(lastDate) : DateFormat('EEE DD MMM, yy').format(DateTime.now());
|
|
|
|
|
// final formattedDate = lastDate != null ? DateFormat('EE DD MMM, yy').format(lastDate) : DateFormat('EE DD MMM, yy').format(DateTime.now());
|
|
|
|
|
final formattedDate = lastDate != null
|
|
|
|
|
? DateUtil.getWeekDayMonthDayYearDateFormatted(
|
|
|
|
|
lastDate,
|
|
|
|
|
"en",
|
|
|
|
|
)
|
|
|
|
|
: DateUtil.getWeekDayMonthDayYearDateFormatted(
|
|
|
|
|
DateTime.now(),
|
|
|
|
|
"en",
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// Show shimmer while loading
|
|
|
|
|
if (viewModel.isLoading) {
|
|
|
|
|
|