flutter_currency_converter 0.0.3

Flutter Android iOS

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 #

2
likes
70
pub points
44%
popularity

A Flutter plugin for converting the currencies

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

rashmikaperera8@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on flutter_currency_converter