update to init loading

This commit is contained in:
Mohamed Nouffer
2023-01-03 12:00:28 +05:30
parent f8a79842e3
commit d56ed36be5
4 changed files with 18 additions and 6 deletions

View File

@ -31,9 +31,11 @@ class AuthService{
static Future<Map<String, dynamic>> login(String email, String password) async {
print("------- in logged email ${email} pwd ${password} ###### --------");
Map<String, dynamic> cats = {};
String server_url = ConstValues.currentServer();
String url = '${server_url}/api/login/';
print("------- in logged url ${url} ###### --------");
//String url = 'http://localhost:8100/api/login/';
final http.Response response = await http.post(
Uri.parse(url),