BASE: Update Icons & Name Of The App.

This commit is contained in:
2025-12-04 10:23:59 +05:00
parent b04050384d
commit e602782edd
228 changed files with 34364 additions and 7905 deletions

View File

@@ -1,6 +1,6 @@
import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/on_demand_home_controller.dart';
import 'package:get/get.dart';
import 'package:get/get.dart' hide Trans;
import '../models/provider_serivce_model.dart';
import '../service/fire_store_utils.dart';
@@ -9,7 +9,8 @@ class ViewCategoryServiceController extends GetxController {
RxList<ProviderServiceModel> providerList = <ProviderServiceModel>[].obs;
RxString categoryId = "".obs, categoryTitle = "".obs;
Rx<OnDemandHomeController> onDemandHomeController = Get.find<OnDemandHomeController>().obs;
Rx<OnDemandHomeController> onDemandHomeController =
Get.find<OnDemandHomeController>().obs;
@override
void onInit() {
@@ -26,21 +27,32 @@ class ViewCategoryServiceController extends GetxController {
providerList.clear();
isLoading.value = true;
List<ProviderServiceModel> providerServiceList = await FireStoreUtils.getProviderFuture(categoryId: categoryId.value);
List<ProviderServiceModel> providerServiceList =
await FireStoreUtils.getProviderFuture(categoryId: categoryId.value);
List<String?> uniqueAuthId = providerServiceList.map((service) => service.author).toList();
List<String?> uniqueServiceId = providerServiceList.map((service) => service.id).toList();
List<String?> uniqueAuthId =
providerServiceList.map((service) => service.author).toList();
List<String?> uniqueServiceId =
providerServiceList.map((service) => service.id).toList();
List<ProviderServiceModel> filterByItemLimit = <ProviderServiceModel>[];
List<String?> uniqueId = <String>[];
if ((Constant.isSubscriptionModelApplied == true || Constant.sectionConstantModel!.adminCommision?.isEnabled == true)) {
if ((Constant.isSubscriptionModelApplied == true ||
Constant.sectionConstantModel!.adminCommision?.isEnabled == true)) {
for (var authUser in uniqueAuthId) {
List<ProviderServiceModel> listofAllServiceByAuth = await FireStoreUtils.getAllProviderServiceByAuthorId(authUser!);
List<ProviderServiceModel> listofAllServiceByAuth =
await FireStoreUtils.getAllProviderServiceByAuthorId(authUser!);
for (int i = 0; i < listofAllServiceByAuth.length; i++) {
if (listofAllServiceByAuth[i].subscriptionPlan?.itemLimit != null &&
(i < int.parse(listofAllServiceByAuth[i].subscriptionPlan?.itemLimit ?? '0') || listofAllServiceByAuth[i].subscriptionPlan?.itemLimit == '-1')) {
(i <
int.parse(
listofAllServiceByAuth[i].subscriptionPlan?.itemLimit ??
'0',
) ||
listofAllServiceByAuth[i].subscriptionPlan?.itemLimit ==
'-1')) {
if (uniqueServiceId.contains(listofAllServiceByAuth[i].id)) {
filterByItemLimit.add(listofAllServiceByAuth[i]);
}
@@ -49,7 +61,9 @@ class ViewCategoryServiceController extends GetxController {
for (var service in filterByItemLimit) {
for (var unique in uniqueServiceId) {
if (service.id == unique && !uniqueId.contains(service.id) && service.subscriptionTotalOrders != '0') {
if (service.id == unique &&
!uniqueId.contains(service.id) &&
service.subscriptionTotalOrders != '0') {
uniqueId.add(service.id);
providerList.add(service);
}