flutter_currency_converter 0.0.3 copy "flutter_currency_converter: ^0.0.3" to clipboard
flutter_currency_converter: ^0.0.3 copied to clipboard

discontinued

A Flutter plugin for converting the currencies

flutter_currency_converter #

A Flutter plugin for converting the currencies.

Sample Use

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Installation #

  • Pub get
flutter_currency_converter: ^0.0.1
  • Import
import 'package:flutter_currency_converter/flutter_currency_converter.dart';
import 'package:flutter_currency_converter/Currency.dart';

Using #

  • Call FlutterCurrencyConverter.convert
  • The convert method required two parameters. These are From and To Currency objects.
  • The Currency objects must have Currency types.
  • For the From Currency object can add the amount as an optional parameter. Otherwise, it always returns the value for 1 unit.
 await FlutterCurrencyConverter.convert(
        Currency(Currency.USD), Currency(Currency.LKR));

 await FlutterCurrencyConverter.convert(
        Currency(Currency.AUD,amount: 100), Currency(Currency.CHF));

Authors #

5
likes
30
pub points
41%
popularity

Publisher

unverified uploader

A Flutter plugin for converting the currencies

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on flutter_currency_converter