|
|
|
|
@ -18,6 +18,7 @@ import 'package:hmg_patient_app_new/widgets/bottomsheet/generic_bottom_sheet.dar
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/routes/custom_page_route.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'dart:ui' as ui;
|
|
|
|
|
|
|
|
|
|
class SavedLogin extends StatefulWidget {
|
|
|
|
|
const SavedLogin({super.key});
|
|
|
|
|
@ -93,14 +94,15 @@ class _SavedLogin extends State<SavedLogin> {
|
|
|
|
|
|
|
|
|
|
("${LocaleKeys.lastLoginBy.tr()} ${loginType.displayName}")
|
|
|
|
|
.toText14(isBold: true, color: AppColors.greyTextColor, letterSpacing: -1),
|
|
|
|
|
appState.getSelectDeviceByImeiRespModelElement != null
|
|
|
|
|
? (appState.getSelectDeviceByImeiRespModelElement!.createdOn != null
|
|
|
|
|
? DateUtil.getFormattedDate(
|
|
|
|
|
DateUtil.convertStringToDate(appState.getSelectDeviceByImeiRespModelElement!.createdOn!),
|
|
|
|
|
"d MMMM, y 'at' HH:mm")
|
|
|
|
|
: '--')
|
|
|
|
|
.toText16(isBold: true, color: AppColors.textColor)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection: ui.TextDirection.ltr,
|
|
|
|
|
child: appState.getSelectDeviceByImeiRespModelElement != null
|
|
|
|
|
? (appState.getSelectDeviceByImeiRespModelElement!.createdOn != null
|
|
|
|
|
? DateUtil.getFormattedDate(DateUtil.convertStringToDate(appState.getSelectDeviceByImeiRespModelElement!.createdOn!), "d MMMM, y 'at' HH:mm")
|
|
|
|
|
: '--')
|
|
|
|
|
.toText16(isBold: true, color: AppColors.textColor, isEnglishOnly: true)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
appState.getSelectDeviceByImeiRespModelElement != null
|
|
|
|
|
? Container(
|
|
|
|
|
|