Merge branch 'master' of http://34.17.182.140/Haroon6138/HMG_Patient_App into login_other_country
* 'master' of http://34.17.182.140/Haroon6138/HMG_Patient_App: Update to stores, VersionID 20.1 updates updates VIDA 4 lab fixes Added immediate patient insurance update API test description issue fixed Services page changes & API implementation Services page changes, Update to stores VersionID 19.7 updates implemented services price list page, Update to stores 19.6 Services list page implemented PenguinIn android updates Updated PenguinIn Navigation updates for offer details page, Update to stores 19.5 fixes for ApplePay amount issue in arabic, Fix for CheckInType # Conflicts: # lib/config/config.dartlogin_other_country
commit
2bbb81a914
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,100 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1510"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Release"
|
||||
selectedDebuggerIdentifier = ""
|
||||
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
|
||||
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUValidationMode = "1"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<CommandLineArguments>
|
||||
<CommandLineArgument
|
||||
argument = "-FIRAnalyticsDebugEnabled"
|
||||
isEnabled = "NO">
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "-v"
|
||||
isEnabled = "NO">
|
||||
</CommandLineArgument>
|
||||
</CommandLineArguments>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Profile"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@ -0,0 +1,54 @@
|
||||
class ServicesPriceListResponseModel {
|
||||
int? createdBy;
|
||||
String? createdOn;
|
||||
int? editedBy;
|
||||
String? editedOn;
|
||||
int? id;
|
||||
bool? isEnabled;
|
||||
String? nameAR;
|
||||
String? nameEN;
|
||||
num? price;
|
||||
int? rowID;
|
||||
|
||||
ServicesPriceListResponseModel({
|
||||
this.createdBy,
|
||||
this.createdOn,
|
||||
this.editedBy,
|
||||
this.editedOn,
|
||||
this.id,
|
||||
this.isEnabled,
|
||||
this.nameAR,
|
||||
this.nameEN,
|
||||
this.price,
|
||||
this.rowID,
|
||||
});
|
||||
|
||||
ServicesPriceListResponseModel.fromJson(Map<String, dynamic> json) {
|
||||
createdBy = json['CreatedBy'];
|
||||
createdOn = json['CreatedOn'];
|
||||
editedBy = json['EditedBy'];
|
||||
editedOn = json['EditedOn'];
|
||||
id = json['ID'];
|
||||
isEnabled = json['IsEnabled'];
|
||||
nameAR = json['NameAR'];
|
||||
nameEN = json['NameEN'];
|
||||
price = json['Price'];
|
||||
rowID = json['RowID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['CreatedBy'] = createdBy;
|
||||
data['CreatedOn'] = createdOn;
|
||||
data['EditedBy'] = editedBy;
|
||||
data['EditedOn'] = editedOn;
|
||||
data['ID'] = id;
|
||||
data['IsEnabled'] = isEnabled;
|
||||
data['NameAR'] = nameAR;
|
||||
data['NameEN'] = nameEN;
|
||||
data['Price'] = price;
|
||||
data['RowID'] = rowID;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,168 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:hmg_patient_app/core/service/privilege_service.dart';
|
||||
import 'package:hmg_patient_app/core/viewModels/project_view_model.dart';
|
||||
import 'package:hmg_patient_app/locator.dart';
|
||||
import 'package:hmg_patient_app/theme/colors.dart';
|
||||
import 'package:hmg_patient_app/uitl/translations_delegate_base.dart';
|
||||
import 'package:hmg_patient_app/uitl/utils_new.dart';
|
||||
import 'package:hmg_patient_app/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class ServicesPriceList extends StatelessWidget {
|
||||
ServicesPriceList({super.key});
|
||||
|
||||
ProjectViewModel? projectViewModel;
|
||||
PrivilegeService _privilegeService = locator<PrivilegeService>();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
projectViewModel = Provider.of(context);
|
||||
return AppScaffold(
|
||||
appBarTitle: TranslationBase.of(context).servicePriceList,
|
||||
isShowAppBar: true,
|
||||
showNewAppBar: true,
|
||||
backgroundColor: Color(0xffF8F8F8),
|
||||
showNewAppBarTitle: true,
|
||||
showDropDown: false,
|
||||
isShowDecPage: false,
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
children: [
|
||||
Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
decoration: cardRadius(10),
|
||||
child: Text(
|
||||
TranslationBase.of(context).servicePriceListDesc,
|
||||
style: TextStyle(
|
||||
color: CustomColors.textColor,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
letterSpacing: -0.64,
|
||||
fontFamily: projectViewModel!.isArabic ? 'Cairo' : 'Poppins',
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 16),
|
||||
Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
decoration: cardRadius(10),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
TranslationBase.of(context).serviceName,
|
||||
style: TextStyle(
|
||||
color: CustomColors.textDarkColor,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
letterSpacing: -0.64,
|
||||
),
|
||||
),
|
||||
Text(
|
||||
TranslationBase.of(context).price,
|
||||
style: TextStyle(
|
||||
color: CustomColors.textDarkColor,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
letterSpacing: -0.64,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
Divider(
|
||||
height: 1,
|
||||
color: CustomColors.black,
|
||||
),
|
||||
SizedBox(height: 16),
|
||||
|
||||
ListView.separated(
|
||||
shrinkWrap: true,
|
||||
padding: EdgeInsets.zero,
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
itemCount: _privilegeService.servicesPriceList.length,
|
||||
separatorBuilder: (context, index) =>
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 12),
|
||||
child: Divider(
|
||||
height: 1,
|
||||
color: CustomColors.devider,
|
||||
),
|
||||
),
|
||||
itemBuilder: (context, index) {
|
||||
final service = _privilegeService.servicesPriceList[index];
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
(projectViewModel!.isArabic ? service.nameAR ?? service.nameEN ?? '' : service.nameEN ?? service.nameAR ?? ''),
|
||||
style: TextStyle(
|
||||
color: CustomColors.textColor,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold,
|
||||
letterSpacing: -0.64,
|
||||
),
|
||||
),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
projectViewModel!.isArabic ? Container() : SvgPicture.asset("assets/images/new/Saudi_Riyal_Symbol.svg", width: 16, height: 16),
|
||||
mWidth(6),
|
||||
Text(
|
||||
'${service.price ?? 0}',
|
||||
style: TextStyle(
|
||||
color: CustomColors.textDarkColor,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold,
|
||||
letterSpacing: -0.64,
|
||||
),
|
||||
),
|
||||
mWidth(6),
|
||||
projectViewModel!.isArabic ? SvgPicture.asset("assets/images/new/Saudi_Riyal_Symbol.svg", width: 16, height: 16) : Container(),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
)),
|
||||
|
||||
SizedBox(height: 16),
|
||||
Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
decoration: cardRadius(10),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
TranslationBase.of(context).servicePriceListRights,
|
||||
maxLines: 2,
|
||||
style: TextStyle(
|
||||
color: CustomColors.textColor,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
letterSpacing: -0.64,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue