forex_conversion 0.0.2 copy "forex_conversion: ^0.0.2" to clipboard
forex_conversion: ^0.0.2 copied to clipboard

outdated

A Flutter Package for real-time forex prices and conversions.

example/main.dart

import 'package:forex_conversion/forex_conversion.dart';

Future<void> main(List<String> arguments) async {
  final fx = Forex();
  Map<String, double> allPrices = await fx.getAllCurrenciesPrices();
  // ignore: avoid_print
  print("Exchange rate of PKR: ${allPrices['PKR']}");
  // ignore: avoid_print
  print("Exchange rate of EUR: ${allPrices['EUR']}");
  // ignore: avoid_print
  print("Exchange rate of TRY: ${allPrices['TRY']}");

  List<String> availableCurrencies = await fx.getAvailableCurrencies();
  // ignore: avoid_print
  print("The list of all available currencies: $availableCurrencies");

  double myPriceInPKR = await fx.getCurrencyConverted("USD", "PKR", 252.5);
  // ignore: avoid_print
  print("252.5 USD in PKR: $myPriceInPKR");
}
13
likes
0
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter Package for real-time forex prices and conversions.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on forex_conversion