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,7 +1,7 @@
import 'package:customer/constant/constant.dart';
import 'package:customer/models/vendor_category_model.dart';
import '../service/fire_store_utils.dart';
import 'package:get/get.dart';
import 'package:get/get.dart' hide Trans;
class ViewAllCategoryController extends GetxController {
RxBool isLoading = true.obs;
@@ -18,12 +18,19 @@ class ViewAllCategoryController extends GetxController {
Future<void> getCategoryData() async {
await FireStoreUtils.getVendorCategory().then((value) {
vendorCategoryModel.value = value;
});
if (Constant.restaurantList != null) {
List<String> usedCategoryIds = Constant.restaurantList!.expand((vendor) => vendor.categoryID ?? []).whereType<String>().toSet().toList();
vendorCategoryModel.value = vendorCategoryModel.where((category) => usedCategoryIds.contains(category.id)).toList();
List<String> usedCategoryIds =
Constant.restaurantList!
.expand((vendor) => vendor.categoryID ?? [])
.whereType<String>()
.toSet()
.toList();
vendorCategoryModel.value =
vendorCategoryModel
.where((category) => usedCategoryIds.contains(category.id))
.toList();
}
isLoading.value = false;