|
|
|
|
@ -29,6 +29,7 @@ import 'package:doctor_app_flutter/widgets/shared/speech-text-popup.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/text_fields_utils.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hijri/hijri_calendar.dart';
|
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
|
import 'package:permission_handler/permission_handler.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
@ -375,6 +376,7 @@ class _RegisterConfirmationPatientPageState
|
|
|
|
|
.getPatientInfoResponseModel.dateOfBirth);
|
|
|
|
|
String wellFormat = "${dateFormat.day}\/${dateFormat.month}\/${dateFormat.year}";
|
|
|
|
|
print (dateFormat.toUtc().toString());
|
|
|
|
|
HijriCalendar hijriDate = HijriCalendar.fromDate(new DateTime(dateFormat.year, dateFormat.month, dateFormat.day));
|
|
|
|
|
// return ;
|
|
|
|
|
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
@ -396,7 +398,7 @@ class _RegisterConfirmationPatientPageState
|
|
|
|
|
middleNameN: middleNameN.text,
|
|
|
|
|
strDateofBirth: dateFormat.toUtc().toString(),
|
|
|
|
|
dateofBirth: AppDateUtils.convertToServerFormat(widget.model.getPatientInfoResponseModel.dateOfBirth, 'MM/dd/yyyy'),
|
|
|
|
|
dateofBirthN: wellFormat,
|
|
|
|
|
dateofBirthN: '$hijriDate',
|
|
|
|
|
gender: (widget.model.getPatientInfoResponseModel.gender == "M")
|
|
|
|
|
? 1
|
|
|
|
|
: 2,
|
|
|
|
|
@ -433,6 +435,7 @@ class _RegisterConfirmationPatientPageState
|
|
|
|
|
if (widget.model.state == ViewState.ErrorLocal) {
|
|
|
|
|
Helpers.showErrorToast(widget.model.error);
|
|
|
|
|
} else {
|
|
|
|
|
DrAppToastMsg.showSuccesToast("Patient added Successfully");
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|