|
|
|
|
@ -1,11 +1,13 @@
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_state.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/dependencies.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/utils.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/features/authentication/authentication_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/book_appointments/models/resp_models/get_clinic_list_response_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/immediate_livecare/immediate_livecare_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/immediate_livecare/models/resp_models/get_livecare_immediate_clinics_response_model.dart';
|
|
|
|
|
@ -114,11 +116,11 @@ class SelectLivecareClinicPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: LocaleKeys.yesPleasImInAHurry.tr(context: context),
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
getIt.get<AppState>().isAuthenticated
|
|
|
|
|
? Column(children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: LocaleKeys.yesPleasImInAHurry.tr(context: context),
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
GetLiveCareClinicListResponseModel liveCareClinic = GetLiveCareClinicListResponseModel(
|
|
|
|
|
iD: selectedClinic.liveCareClinicID,
|
|
|
|
|
@ -177,8 +179,24 @@ class SelectLivecareClinicPage extends StatelessWidget {
|
|
|
|
|
height: 50.h,
|
|
|
|
|
).paddingSymmetrical(24.h, 0.h),
|
|
|
|
|
SizedBox(height: 24.h),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
])
|
|
|
|
|
: CustomButton(
|
|
|
|
|
text: LocaleKeys.loginToUseServiceLiveCare.tr(),
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
await getIt.get<AuthenticationViewModel>().onLoginPressed();
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: AppColors.primaryRedColor,
|
|
|
|
|
borderColor: AppColors.primaryRedColor,
|
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
|
fontSize: 16.f,
|
|
|
|
|
isBold: true,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 50.h,
|
|
|
|
|
icon: AppAssets.login1,
|
|
|
|
|
iconColor: AppColors.whiteColor,
|
|
|
|
|
iconSize: 24.h,
|
|
|
|
|
).paddingSymmetrical(24.h, 120.h),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|