From 5ca6fe4a641a29d16ef8e11166d9f88f54b8b01d Mon Sep 17 00:00:00 2001 From: kaushik Date: Fri, 19 Jul 2024 18:37:20 +0530 Subject: [PATCH] set git ignore --- data/lib/config.dart | 6 ------ data/lib/service/place_service.dart | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 data/lib/config.dart diff --git a/data/lib/config.dart b/data/lib/config.dart deleted file mode 100644 index 2693501c..00000000 --- a/data/lib/config.dart +++ /dev/null @@ -1,6 +0,0 @@ -class AppConfig { - static const String placeBaseUrl = - 'https://maps.googleapis.com/maps/api/place/textsearch/json'; - - static const String mapApiKey = 'AIzaSyDbaJSVGU4Jkhd_V_e9esorzh_8yykh160'; -} diff --git a/data/lib/service/place_service.dart b/data/lib/service/place_service.dart index 812fe0de..baafdeb0 100644 --- a/data/lib/service/place_service.dart +++ b/data/lib/service/place_service.dart @@ -6,7 +6,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:http/http.dart' as http; import '../api/network/client.dart'; -import '../config.dart'; const defaultRadius = 1500; @@ -133,8 +132,7 @@ class PlaceService { String? lng, ) async { final placeRadius = (lat != null && lng != null) ? defaultRadius : ''; - final String url = - '${AppConfig.placeBaseUrl}?query=$query&location=$lat,$lng&radius=$placeRadius&key=${AppConfig.mapApiKey}'; + const String url ='url'; final response = await http.get(Uri.parse(url));