|
|
|
@ -107,22 +107,17 @@ class GeneralAppointmentWidget extends StatelessWidget {
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
if (isSelectable)
|
|
|
|
if (isSelectable)
|
|
|
|
SizedBox(
|
|
|
|
Container(
|
|
|
|
child: const SizedBox(
|
|
|
|
height: 20,
|
|
|
|
width: 14,
|
|
|
|
width: 20,
|
|
|
|
height: 14,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
).toContainer(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
borderRadius: 24,
|
|
|
|
color: (appointmentListModel.isSelected ?? false) ? MyColors.primaryColor : Colors.transparent,
|
|
|
|
marginAll: 4,
|
|
|
|
border: Border.all(
|
|
|
|
paddingAll: 0,
|
|
|
|
color: (appointmentListModel.isSelected ?? false) ? Colors.transparent : MyColors.darkTextColor,
|
|
|
|
backgroundColor: (appointmentListModel.isSelected ?? false) ? MyColors.primaryColor : MyColors.greyButtonColor,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
).toContainer(
|
|
|
|
child: const Center(child: Icon(Icons.check_rounded, size: 16, color: MyColors.white)),
|
|
|
|
borderRadius: 24,
|
|
|
|
|
|
|
|
isEnabledBorder: true,
|
|
|
|
|
|
|
|
paddingAll: 0,
|
|
|
|
|
|
|
|
borderWidget: 3,
|
|
|
|
|
|
|
|
borderColor: MyColors.primaryColor,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (isSelectable) 12.width,
|
|
|
|
if (isSelectable) 12.width,
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
@ -156,8 +151,8 @@ class GeneralAppointmentWidget extends StatelessWidget {
|
|
|
|
2.width,
|
|
|
|
2.width,
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: appointmentListModel.customerMobileNum.toString().toText(
|
|
|
|
child: appointmentListModel.customerMobileNum.toString().toText(
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -171,7 +166,6 @@ class GeneralAppointmentWidget extends StatelessWidget {
|
|
|
|
Expanded(child: (appointmentListModel.duration ?? "").toText(fontSize: 8))
|
|
|
|
Expanded(child: (appointmentListModel.duration ?? "").toText(fontSize: 8))
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
@ -181,9 +175,7 @@ class GeneralAppointmentWidget extends StatelessWidget {
|
|
|
|
4.width,
|
|
|
|
4.width,
|
|
|
|
// Expanded(child: appointmentListModel.appointmentDate!.toFormattedDateWithoutTime().toText(fontSize: 8))
|
|
|
|
// Expanded(child: appointmentListModel.appointmentDate!.toFormattedDateWithoutTime().toText(fontSize: 8))
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: appointmentListModel.appointmentDate!
|
|
|
|
child: appointmentListModel.appointmentDate!.toLocalizedFormattedDateWithoutTime(context).toText(fontSize: 8),
|
|
|
|
.toLocalizedFormattedDateWithoutTime(context)
|
|
|
|
|
|
|
|
.toText(fontSize: 8),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -202,11 +194,9 @@ class GeneralAppointmentWidget extends StatelessWidget {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
"${LocaleKeys.createdOn.tr()}: ".toText(color: MyColors.lightTextColor),
|
|
|
|
"${LocaleKeys.createdOn.tr()}: ".toText(color: MyColors.lightTextColor),
|
|
|
|
2.width,
|
|
|
|
2.width,
|
|
|
|
// Expanded(child: appointmentListModel.appointmentCreatedOn!.toFormattedDateWithoutTime().toText(fontSize: 8))
|
|
|
|
// Expanded(child: appointmentListModel.appointmentCreatedOn!.toFormattedDateWithoutTime().toText(fontSize: 8))
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: appointmentListModel.appointmentCreatedOn!
|
|
|
|
child: appointmentListModel.appointmentCreatedOn!.toLocalizedFormattedDateWithoutTime(context).toText(fontSize: 8),
|
|
|
|
.toLocalizedFormattedDateWithoutTime(context)
|
|
|
|
|
|
|
|
.toText(fontSize: 8),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -368,94 +358,3 @@ class GeneralAppointmentWidget extends StatelessWidget {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// https://ms.hmg.com/api/ServiceProviders/ServiceProviderBranchDetail_Get?ID=1061&ServiceCategoryIDs=4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// {ID: 1061, ServiceCategoryIDs: [4]}
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// "messageStatus": 1,
|
|
|
|
|
|
|
|
// "totalItemsCount": 1,
|
|
|
|
|
|
|
|
// "data": [
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// "id": 1061,
|
|
|
|
|
|
|
|
// "serviceProviderID": 14,
|
|
|
|
|
|
|
|
// "serviceProviderName": "James Bond",
|
|
|
|
|
|
|
|
// "branchName": "Sawaidi Branch",
|
|
|
|
|
|
|
|
// "branchDescription": "This is Swaidi Branch",
|
|
|
|
|
|
|
|
// "cityID": 1,
|
|
|
|
|
|
|
|
// "cityName": "Riyadh",
|
|
|
|
|
|
|
|
// "address": "Riyadh, KSA",
|
|
|
|
|
|
|
|
// "latitude": "37.541014800226456",
|
|
|
|
|
|
|
|
// "longitude": "-122.36278831958771",
|
|
|
|
|
|
|
|
// "distanceKM": 12811.22,
|
|
|
|
|
|
|
|
// "openTime": "12:00",
|
|
|
|
|
|
|
|
// "closeTime": "22:45",
|
|
|
|
|
|
|
|
// "branchStatus": 3,
|
|
|
|
|
|
|
|
// "branchStatusText": "ApprovedOrActive",
|
|
|
|
|
|
|
|
// "branchRateAvg": 0.0,
|
|
|
|
|
|
|
|
// "serviceProviderServices": [
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// "serviceProviderServiceID": 1212,
|
|
|
|
|
|
|
|
// "providerServiceDescription": null,
|
|
|
|
|
|
|
|
// "categoryID": 4,
|
|
|
|
|
|
|
|
// "categoryName": "Care and Protection",
|
|
|
|
|
|
|
|
// "serviceID": 16,
|
|
|
|
|
|
|
|
// "serviceDescription": "film body protection",
|
|
|
|
|
|
|
|
// "serviceDescriptionN": "فلم حماية الدهان",
|
|
|
|
|
|
|
|
// "serviceStatus": 1,
|
|
|
|
|
|
|
|
// "statusText": null,
|
|
|
|
|
|
|
|
// "isAllowAppointment": true,
|
|
|
|
|
|
|
|
// "isAllowAppointmentHome": true,
|
|
|
|
|
|
|
|
// "customerLocationRange": 10,
|
|
|
|
|
|
|
|
// "rangePricePerKm": 15.0,
|
|
|
|
|
|
|
|
// "itemsCount": 1
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// "serviceProviderBranchImage": [
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// "id": 136,
|
|
|
|
|
|
|
|
// "imageName": "image_picker_929CDE1A-800C-4EFE-AC48-7060BB338D77-69034-00003ADB833C597D.jpg",
|
|
|
|
|
|
|
|
// "imageUrl": "https://ms.hmg.com/api/serviceProviders/ServiceProviderBranchImage?imageName=61aa8beb-99b0-4876-b47a-08dce8674a2c_50243415.png&sp=Provider_14&serviceProviderBranch=ServiceProviderBranch_1061",
|
|
|
|
|
|
|
|
// "imageStr": null,
|
|
|
|
|
|
|
|
// "serviceProviderBranchID": 1061,
|
|
|
|
|
|
|
|
// "serviceProviderBranch": null,
|
|
|
|
|
|
|
|
// "isActive": true,
|
|
|
|
|
|
|
|
// "createdBy": 101,
|
|
|
|
|
|
|
|
// "createdOn": "2024-12-16T14:47:48.6633333",
|
|
|
|
|
|
|
|
// "modifiedBy": null,
|
|
|
|
|
|
|
|
// "modifiedOn": null
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// "id": 137,
|
|
|
|
|
|
|
|
// "imageName": "image_picker_EBF6BA32-3E4E-4AAE-BC2C-1B136A1C32B3-69034-00003ADB7C82E00F.jpg",
|
|
|
|
|
|
|
|
// "imageUrl": "https://ms.hmg.com/api/serviceProviders/ServiceProviderBranchImage?imageName=61aa8beb-99b0-4876-b47a-08dce8674a2c_51856527.png&sp=Provider_14&serviceProviderBranch=ServiceProviderBranch_1061",
|
|
|
|
|
|
|
|
// "imageStr": null,
|
|
|
|
|
|
|
|
// "serviceProviderBranchID": 1061,
|
|
|
|
|
|
|
|
// "serviceProviderBranch": null,
|
|
|
|
|
|
|
|
// "isActive": true,
|
|
|
|
|
|
|
|
// "createdBy": 101,
|
|
|
|
|
|
|
|
// "createdOn": "2024-12-16T14:47:48.6866667",
|
|
|
|
|
|
|
|
// "modifiedBy": null,
|
|
|
|
|
|
|
|
// "modifiedOn": null
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// "id": 138,
|
|
|
|
|
|
|
|
// "imageName": "image_picker_168879D6-4707-4D0E-ACDA-0C956BD2AC4A-69034-00003AE6922D39CF.jpg",
|
|
|
|
|
|
|
|
// "imageUrl": "https://ms.hmg.com/api/serviceProviders/ServiceProviderBranchImage?imageName=61aa8beb-99b0-4876-b47a-08dce8674a2c_61115226.png&sp=Provider_14&serviceProviderBranch=ServiceProviderBranch_1061",
|
|
|
|
|
|
|
|
// "imageStr": null,
|
|
|
|
|
|
|
|
// "serviceProviderBranchID": 1061,
|
|
|
|
|
|
|
|
// "serviceProviderBranch": null,
|
|
|
|
|
|
|
|
// "isActive": true,
|
|
|
|
|
|
|
|
// "createdBy": 101,
|
|
|
|
|
|
|
|
// "createdOn": "2024-12-16T14:47:48.7066667",
|
|
|
|
|
|
|
|
// "modifiedBy": null,
|
|
|
|
|
|
|
|
// "modifiedOn": null
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ]
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// "message": "Success"
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|