Compare commits
61 Commits
refactor_p
...
developmen
| Author | SHA1 | Date |
|---|---|---|
|
|
bc7f3e9f35 | 4 years ago |
|
|
3a9c64779e | 4 years ago |
|
|
4fe2a4444d | 4 years ago |
|
|
bcb1e90ae6 | 4 years ago |
|
|
6bdb2a1600 | 4 years ago |
|
|
092cfbc891 | 4 years ago |
|
|
f2bb245c25 | 4 years ago |
|
|
8b79b0041c | 4 years ago |
|
|
5f7b52a529 | 4 years ago |
|
|
17f32c4dc8 | 4 years ago |
|
|
986af6ba9c | 4 years ago |
|
|
d717d9e0cf | 4 years ago |
|
|
10798f73de | 4 years ago |
|
|
d4f01c19f7 | 4 years ago |
|
|
6c1425ad5a | 4 years ago |
|
|
46760ffc77 | 4 years ago |
|
|
8069e89a61 | 4 years ago |
|
|
c30d6bebd8 | 4 years ago |
|
|
5422472ccc | 4 years ago |
|
|
33b8d6d78d | 4 years ago |
|
|
1a3ad32aa5 | 4 years ago |
|
|
70573d190a | 4 years ago |
|
|
379bfd5bb3 | 4 years ago |
|
|
041c652b86 | 4 years ago |
|
|
89d4a7aacb | 4 years ago |
|
|
9ecfe896f9 | 4 years ago |
|
|
f84ae8b4e7 | 4 years ago |
|
|
447ca6d4dc | 4 years ago |
|
|
4b7b4fda7f | 4 years ago |
|
|
e242aa19bc | 4 years ago |
|
|
9f7cdba8b7 | 4 years ago |
|
|
8bdde45d81 | 4 years ago |
|
|
8c93d5c450 | 4 years ago |
|
|
28defc2582 | 4 years ago |
|
|
f1dd50d7bf | 4 years ago |
|
|
31082249e5 | 4 years ago |
|
|
5ec07bb931 | 4 years ago |
|
|
36e245dd7d | 4 years ago |
|
|
077cad7df5 | 4 years ago |
|
|
a019319589 | 4 years ago |
|
|
323e3f3538 | 4 years ago |
|
|
e73271cb29 | 4 years ago |
|
|
1ac24bee90 | 4 years ago |
|
|
e85a32274a | 4 years ago |
|
|
010310eb48 | 4 years ago |
|
|
47352ae77d | 4 years ago |
|
|
4e6c940cdf | 4 years ago |
|
|
1ca7b28590 | 4 years ago |
|
|
e935014776 | 4 years ago |
|
|
e3a71945de | 4 years ago |
|
|
d743c2c99c | 4 years ago |
|
|
e1c635a911 | 4 years ago |
|
|
7fc52ecad4 | 4 years ago |
|
|
31cf229763 | 4 years ago |
|
|
286dbe0a3f | 4 years ago |
|
|
dfc792ce64 | 4 years ago |
|
|
fa4e4b0dfd | 4 years ago |
|
|
b7892fc18e | 4 years ago |
|
|
6107639ecd | 4 years ago |
|
|
3f41ff267a | 4 years ago |
|
|
fcdec6dbf7 | 4 years ago |
@ -0,0 +1,25 @@
|
||||
class DoctorErSignAssessmentReqModel {
|
||||
String setupID;
|
||||
int signInType;
|
||||
int loginDoctorID;
|
||||
int patientID;
|
||||
|
||||
DoctorErSignAssessmentReqModel(
|
||||
{this.setupID, this.signInType, this.loginDoctorID, this.patientID});
|
||||
|
||||
DoctorErSignAssessmentReqModel.fromJson(Map<String, dynamic> json) {
|
||||
setupID = json['SetupID'];
|
||||
signInType = json['SignInType'];
|
||||
loginDoctorID = json['LoginDoctorID'];
|
||||
patientID = json['PatientID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['SetupID'] = this.setupID;
|
||||
data['SignInType'] = this.signInType;
|
||||
data['LoginDoctorID'] = this.loginDoctorID;
|
||||
data['PatientID'] = this.patientID;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -1,60 +0,0 @@
|
||||
class AllergyModel {
|
||||
int allergyDiseaseId;
|
||||
String allergyDiseaseName;
|
||||
int allergyDiseaseType;
|
||||
int appointmentNo;
|
||||
int createdBy;
|
||||
String createdByName;
|
||||
String createdOn;
|
||||
int episodeID;
|
||||
bool isChecked;
|
||||
bool isUpdatedByNurse;
|
||||
int severity;
|
||||
String severityName;
|
||||
|
||||
AllergyModel(
|
||||
{this.allergyDiseaseId,
|
||||
this.allergyDiseaseName,
|
||||
this.allergyDiseaseType,
|
||||
this.appointmentNo,
|
||||
this.createdBy,
|
||||
this.createdByName,
|
||||
this.createdOn,
|
||||
this.episodeID,
|
||||
this.isChecked,
|
||||
this.isUpdatedByNurse,
|
||||
this.severity,
|
||||
this.severityName});
|
||||
|
||||
AllergyModel.fromJson(Map<String, dynamic> json) {
|
||||
allergyDiseaseId = json['allergyDiseaseId'];
|
||||
allergyDiseaseName = json['allergyDiseaseName'];
|
||||
allergyDiseaseType = json['allergyDiseaseType'];
|
||||
appointmentNo = json['appointmentNo'];
|
||||
createdBy = json['createdBy'];
|
||||
createdByName = json['createdByName'];
|
||||
createdOn = json['createdOn'];
|
||||
episodeID = json['episodeID'];
|
||||
isChecked = json['isChecked'];
|
||||
isUpdatedByNurse = json['isUpdatedByNurse'];
|
||||
severity = json['severity'];
|
||||
severityName = json['severityName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['allergyDiseaseId'] = this.allergyDiseaseId;
|
||||
data['allergyDiseaseName'] = this.allergyDiseaseName;
|
||||
data['allergyDiseaseType'] = this.allergyDiseaseType;
|
||||
data['appointmentNo'] = this.appointmentNo;
|
||||
data['createdBy'] = this.createdBy;
|
||||
data['createdByName'] = this.createdByName;
|
||||
data['createdOn'] = this.createdOn;
|
||||
data['episodeID'] = this.episodeID;
|
||||
data['isChecked'] = this.isChecked;
|
||||
data['isUpdatedByNurse'] = this.isUpdatedByNurse;
|
||||
data['severity'] = this.severity;
|
||||
data['severityName'] = this.severityName;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
import 'package:charts_flutter/flutter.dart' as charts;
|
||||
import 'package:charts_flutter/flutter.dart';
|
||||
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||
import 'package:doctor_app_flutter/widgets/data_display/list/flexible_container.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
class TimeSeriesSales {
|
||||
final DateTime time;
|
||||
final int sales;
|
||||
|
||||
TimeSeriesSales(this.time, this.sales);
|
||||
}
|
||||
|
||||
class TimeSeriesSales2 {
|
||||
final DateTime time;
|
||||
final double sales;
|
||||
|
||||
TimeSeriesSales2(this.time, this.sales);
|
||||
}
|
||||
@ -1,20 +1,3 @@
|
||||
// final List<Countries> countries = [
|
||||
// new Countries(
|
||||
// name: "Saudi Arabia", name_ar: "المملكة العربية السعودية", code: '966'),
|
||||
// new Countries(
|
||||
// name: "United Arab Emirates",
|
||||
// name_ar: "الإمارات العربية المتحدة",
|
||||
// code: '971'),
|
||||
// ];
|
||||
|
||||
// class Countries {
|
||||
// final String name;
|
||||
// final String name_ar;
|
||||
// final String code;
|
||||
|
||||
// Countries({this.name, this.name_ar, this.code});
|
||||
// }
|
||||
|
||||
class Countries {
|
||||
String name;
|
||||
String nameAr;
|
||||
@ -1,64 +0,0 @@
|
||||
class RequestPatientLabOrders {
|
||||
double versionID;
|
||||
int channel;
|
||||
int languageID;
|
||||
String iPAdress;
|
||||
String generalid;
|
||||
int patientOutSA;
|
||||
String sessionID;
|
||||
bool isDentalAllowedBackend;
|
||||
int deviceTypeID;
|
||||
int patientID;
|
||||
String tokenID;
|
||||
int patientTypeID;
|
||||
int patientType;
|
||||
|
||||
RequestPatientLabOrders(
|
||||
{this.versionID,
|
||||
this.channel,
|
||||
this.languageID,
|
||||
this.iPAdress,
|
||||
this.generalid,
|
||||
this.patientOutSA,
|
||||
this.sessionID,
|
||||
this.isDentalAllowedBackend,
|
||||
this.deviceTypeID,
|
||||
this.patientID,
|
||||
this.tokenID,
|
||||
this.patientTypeID,
|
||||
this.patientType});
|
||||
|
||||
RequestPatientLabOrders.fromJson(Map<String, dynamic> json) {
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
languageID = json['LanguageID'];
|
||||
iPAdress = json['IPAdress'];
|
||||
generalid = json['generalid'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
sessionID = json['SessionID'];
|
||||
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||
deviceTypeID = json['DeviceTypeID'];
|
||||
patientID = json['PatientID'];
|
||||
tokenID = json['TokenID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
patientType = json['PatientType'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['generalid'] = this.generalid;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||
data['DeviceTypeID'] = this.deviceTypeID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['PatientType'] = this.patientType;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
import 'package:doctor_app_flutter/config/config.dart';
|
||||
import 'package:doctor_app_flutter/core/model/ER_sign_in/doctor_ER_sign_assessment_req_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/Prescriptions.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/get_medication_for_inpatient_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/get_medication_for_inpatient_request_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/perscription_pharmacy.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/post_prescrition_req_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_entity_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_in_patient.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_report.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_report_enh.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_req_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescriptions_order.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/request_get_list_pharmacy_for_prescriptions.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/request_prescription_report.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/request_prescription_report_enh.dart';
|
||||
import 'package:doctor_app_flutter/core/model/SOAP/Allergy/get_allergies_res_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/SOAP/Assessment/get_assessment_res_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/calculate_box_request_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/search_drug/get_medication_response_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/search_drug/item_by_medicine_request_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/search_drug/search_drug_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/search_drug/search_drug_request_model.dart';
|
||||
import 'package:doctor_app_flutter/core/service/base/lookup-service.dart';
|
||||
import 'package:doctor_app_flutter/core/model/SOAP/Assessment/get_assessment_req_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/patient/vital_sign/patient-vital-sign-data.dart';
|
||||
import 'package:doctor_app_flutter/utils/date-utils.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class ERSignInService extends LookupService {
|
||||
|
||||
|
||||
Future signInERPatient({DoctorErSignAssessmentReqModel doctorErSignAssessmentReqModel}) async {
|
||||
|
||||
|
||||
hasError = false;
|
||||
|
||||
await baseAppClient.post(DOCTOR_ER_SIGN_ASSESSMENT,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: doctorErSignAssessmentReqModel.toJson());
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
import 'package:doctor_app_flutter/core/enum/filter_type.dart';
|
||||
import 'package:doctor_app_flutter/core/enum/view_state.dart';
|
||||
import 'package:doctor_app_flutter/core/model/ER_sign_in/doctor_ER_sign_assessment_req_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/Prescriptions.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/get_medication_for_inpatient_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/perscription_pharmacy.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/post_prescrition_req_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_entity_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_report.dart';
|
||||
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_report_enh.dart';
|
||||
import 'package:doctor_app_flutter/core/model/SOAP/Allergy/get_allergies_res_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/SOAP/Assessment/get_assessment_res_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/patient/vital_sign/patient-vital-sign-data.dart';
|
||||
import 'package:doctor_app_flutter/core/service/patient_medical_file/ER_signin/ER_signin_service.dart';
|
||||
import 'package:doctor_app_flutter/core/service/patient_medical_file/prescription/prescription_service.dart';
|
||||
import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
|
||||
import 'package:doctor_app_flutter/locator.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class ERSignInViewModel extends BaseViewModel {
|
||||
bool hasError = false;
|
||||
|
||||
ERSignInService _ERSignInService = locator<ERSignInService>();
|
||||
|
||||
Future signInERPatient({int patientId, int signInType}) async {
|
||||
hasError = false;
|
||||
await getDoctorProfile();
|
||||
DoctorErSignAssessmentReqModel doctorErSignAssessmentReqModel = new DoctorErSignAssessmentReqModel(setupID:"010266", signInType:signInType, loginDoctorID:doctorProfile.doctorID, patientID: patientId );
|
||||
setState(ViewState.BusyLocal);
|
||||
await _ERSignInService.signInERPatient(doctorErSignAssessmentReqModel: doctorErSignAssessmentReqModel);
|
||||
if (_ERSignInService.hasError) {
|
||||
error = _ERSignInService.error;
|
||||
setState(ViewState.ErrorLocal);
|
||||
} else
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
enum loginType {
|
||||
knownUser,
|
||||
unknownUser,
|
||||
changePassword,
|
||||
verifyPassword,
|
||||
verificationMethods
|
||||
}
|
||||
@ -0,0 +1,227 @@
|
||||
import 'package:barcode_scan2/barcode_scan2.dart';
|
||||
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||
import 'package:doctor_app_flutter/core/enum/view_state.dart';
|
||||
import 'package:doctor_app_flutter/core/model/patient_muse/PatientSearchRequestModel.dart';
|
||||
import 'package:doctor_app_flutter/core/service/AnalyticsService.dart';
|
||||
import 'package:doctor_app_flutter/core/viewModel/ER_sign_in/ER_sign_in_view_model.dart';
|
||||
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
||||
import 'package:doctor_app_flutter/core/viewModel/scan_qr_view_model.dart';
|
||||
import 'package:doctor_app_flutter/locator.dart';
|
||||
import 'package:doctor_app_flutter/screens/patients/patient_search/patient_search_header.dart';
|
||||
import 'package:doctor_app_flutter/utils/dr_app_toast_msg.dart';
|
||||
import 'package:doctor_app_flutter/utils/utils.dart';
|
||||
import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../../routes.dart';
|
||||
import '../base/base_view.dart';
|
||||
|
||||
Utils helpers = Utils();
|
||||
|
||||
class ErSignInScreen extends StatefulWidget {
|
||||
@override
|
||||
_ErSignInScreenState createState() => _ErSignInScreenState();
|
||||
}
|
||||
|
||||
class _ErSignInScreenState extends State<ErSignInScreen> {
|
||||
ProjectViewModel projectViewModel;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
projectViewModel = Provider.of(context);
|
||||
|
||||
return BaseView<ERSignInViewModel>(
|
||||
builder: (_, model, w) => AppScaffold(
|
||||
baseViewModel: model,
|
||||
isShowAppBar: true,
|
||||
appBar: PatientSearchHeader(title: "ER Sign In",)
|
||||
,
|
||||
body: Center(
|
||||
child: Container(
|
||||
margin: EdgeInsets.only(top: SizeConfig.realScreenHeight / 7),
|
||||
child: FractionallySizedBox(
|
||||
widthFactor: 0.9,
|
||||
child: ListView(
|
||||
children: [
|
||||
AppText(
|
||||
TranslationBase.of(context).startScanning,
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
SizedBox(
|
||||
height: 7,
|
||||
),
|
||||
AppText(TranslationBase.of(context).scanERQrCode,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
textAlign: TextAlign.center),
|
||||
SizedBox(
|
||||
height: 15,
|
||||
),
|
||||
Container(
|
||||
height: 150,
|
||||
child: Image.asset('assets/images/qr_code.png'),
|
||||
),
|
||||
SizedBox(
|
||||
height: 35,
|
||||
),
|
||||
AppButton(
|
||||
title: TranslationBase.of(context).scanQr,
|
||||
onPressed: () async {
|
||||
await locator<AnalyticsService>().logEvent(
|
||||
eventCategory: "ErSigninScreen",
|
||||
eventAction: "Scan QR",
|
||||
);
|
||||
_scanQrAndGetPatient(context, model);
|
||||
},
|
||||
icon: Image.asset('assets/images/qr_code_white.png'),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
_scanQrAndGetPatient(BuildContext context, ERSignInViewModel model) async {
|
||||
var result = (await BarcodeScanner.scan()).rawContent;
|
||||
if (result != "") {
|
||||
try{
|
||||
List<String> listOfParams = result.split(',');
|
||||
int patientID = 0;
|
||||
if (listOfParams[0].length != 0)
|
||||
patientID = int.parse(listOfParams[0]);
|
||||
showMyDialog(context:context, firstAction: (){
|
||||
signInERPatient(context: context, model: model, patientId: patientID, signInType: 1);
|
||||
} , secondAction: (){
|
||||
signInERPatient(context: context, model: model, patientId: patientID, signInType: 2);
|
||||
|
||||
} );
|
||||
}catch(e){
|
||||
Utils.showErrorToast("Please Enter Valid Code");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
signInERPatient ({BuildContext context, ERSignInViewModel model, patientId, signInType}) async {
|
||||
GifLoaderDialogUtils.showMyDialog(context);
|
||||
await model.signInERPatient(patientId:patientId, signInType: signInType );
|
||||
if(model.state == ViewState.ErrorLocal) {
|
||||
Utils.showErrorToast(model.error);
|
||||
} else {
|
||||
/// TODO Elham* Create this in Utils
|
||||
DrAppToastMsg.showSuccesToast("Add successfully");
|
||||
}
|
||||
GifLoaderDialogUtils.hideDialog(context);
|
||||
Navigator.of(context).pop();
|
||||
|
||||
}
|
||||
|
||||
/// TODO Elham* Make this as custom Dialog
|
||||
showMyDialog({BuildContext context, Function firstAction,Function secondAction, }) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (ctx) => Center(
|
||||
child: Container(
|
||||
width: MediaQuery.of(context).size.width * 0.8,
|
||||
height: 250,
|
||||
child: AppScaffold(
|
||||
isShowAppBar: false,
|
||||
body: Container(
|
||||
color: Colors.white,
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
// SizedBox(height: 20,),
|
||||
SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
AppText(
|
||||
"Select option",
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
DividerWithSpacesAround(),
|
||||
SizedBox(
|
||||
height: 12,
|
||||
),
|
||||
|
||||
Container(
|
||||
padding: EdgeInsets.all(20),
|
||||
color: Colors.white,
|
||||
child: AppText(
|
||||
projectViewModel.isArabic
|
||||
? "الرجاء اختيار الإجراء الذي تريد القيام به"
|
||||
: 'Please choose the action you want to do ',
|
||||
fontSize: 15,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
DividerWithSpacesAround(),
|
||||
FractionallySizedBox(
|
||||
widthFactor: 0.75,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
FlatButton(
|
||||
child: AppText(
|
||||
"Sing In",
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
), //Text("Cancel"),
|
||||
onPressed: () async {
|
||||
await firstAction();
|
||||
|
||||
|
||||
}),
|
||||
FlatButton(
|
||||
child: AppText(
|
||||
"Sing Out",
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
), //Text("Confirm", ),
|
||||
onPressed: () async {
|
||||
await secondAction();
|
||||
})
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue