From 63cdd871a88553edd5d6adc0c34e550c4cd571c6 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 18 Aug 2024 00:39:06 +0300 Subject: [PATCH] 8/17/1 --- lib/constant/box_name.dart | 1 + lib/constant/links.dart | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/constant/box_name.dart b/lib/constant/box_name.dart index 932ad42..7797c5a 100644 --- a/lib/constant/box_name.dart +++ b/lib/constant/box_name.dart @@ -11,6 +11,7 @@ class BoxName { static const String arrivalTime = "arrivalTime"; static const String passwordDriver = "passwordDriver"; static const String agreeTerms = "agreeTerms"; + static const String serverChosen = "serverChosen"; static const String addWork = 'addWork'; static const String addHome = 'addHome'; static const String tipPercentage = 'tipPercentage'; diff --git a/lib/constant/links.dart b/lib/constant/links.dart index 59667b7..091ba44 100644 --- a/lib/constant/links.dart +++ b/lib/constant/links.dart @@ -1,8 +1,16 @@ import '../env/env.dart'; +import '../main.dart'; +import 'box_name.dart'; class AppLink { - // static const String server = 'https://globalsefer.online/sefer/'; - static final String server = Env.serverPHP; + // static final String seferPaymentServer = Env.seferPaymentServer; + static final String seferPaymentServer = '${Env.seferCairoServer}/ride'; + static final String seferAlexandriaServer = Env.seferAlexandriaServer; + static final String seferCairoServer = Env.seferCairoServer; + static final String seferGizaServer = Env.seferGizaServer; + static final String endPoint = box.read(BoxName.serverChosen); + static final String server = Env.seferCairoServer; + static String googleMapsLink = 'https://maps.googleapis.com/maps/api/'; static String llama = 'https://api.llama-api.com/chat/completions'; static String gemini =