import 'package:doctor_app_flutter/config/config.dart'; import 'package:http/http.dart' as http; // OWNER : Ibrahim albitar // DATE : 22-04-2020 // DESCRIPTION : Custom App client to pin base url for all srvices class AppClient { static Future post(dynamic path, {dynamic body}) async { String _fullUrl = BASE_URL + path; final response = await http.post(_fullUrl, body: body, headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' }); return response; } }