BASE: Update Icons & Name Of The App.
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:customer/models/vendor_model.dart';
|
||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
import '../models/vendor_category_model.dart';
|
||||
import '../service/fire_store_utils.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
|
||||
class CategoryRestaurantController extends GetxController {
|
||||
RxBool isLoading = true.obs;
|
||||
@@ -33,9 +33,10 @@ class CategoryRestaurantController extends GetxController {
|
||||
}
|
||||
|
||||
Future getRestaurant() async {
|
||||
FireStoreUtils.getAllNearestRestaurantByCategoryId(categoryId: vendorCategoryModel.value.id.toString(), isDining: dineIn.value).listen((
|
||||
event,
|
||||
) async {
|
||||
FireStoreUtils.getAllNearestRestaurantByCategoryId(
|
||||
categoryId: vendorCategoryModel.value.id.toString(),
|
||||
isDining: dineIn.value,
|
||||
).listen((event) async {
|
||||
allNearestRestaurant.clear();
|
||||
allNearestRestaurant.addAll(event);
|
||||
});
|
||||
@@ -46,7 +47,10 @@ class CategoryRestaurantController extends GetxController {
|
||||
if (value != null) {
|
||||
for (int i = 0; i < value.length; i++) {
|
||||
if (Constant.isPointInPolygon(
|
||||
LatLng(Constant.selectedLocation.location!.latitude ?? 0.0, Constant.selectedLocation.location!.longitude ?? 0.0),
|
||||
LatLng(
|
||||
Constant.selectedLocation.location!.latitude ?? 0.0,
|
||||
Constant.selectedLocation.location!.longitude ?? 0.0,
|
||||
),
|
||||
value[i].area!,
|
||||
)) {
|
||||
Constant.selectedZone = value[i];
|
||||
|
||||
Reference in New Issue
Block a user