mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2026-10-30 18:34:50 +00:00
UPDATED API
This commit is contained in:
1 parent
1574f409f9
commit
ec1e3a704e
3 files changed
+25
-32
No files matched your search
@@ -33,10 +33,8 @@ class RepositoryImpl extends Repository with SafeApiCall {
|
||||
String from = fromCurrency.getCurrencyCode();
|
||||
String to = toCurrency.getCurrencyCode();
|
||||
|
||||
String currency = "${from}_$to";
|
||||
|
||||
try {
|
||||
ResponseObject responseObject = await getDataFromApiCall(_api.getConversion(currency));
|
||||
ResponseObject responseObject = await getDataFromApiCall(_api.getConversion(from, to));
|
||||
return responseObject.convert();
|
||||
} on HttpException catch(error) {
|
||||
logger.e(error);
|
||||
|
||||
Reference in new issue
Block a user