currency_symbols 0.0.1+2 copy "currency_symbols: ^0.0.1+2" to clipboard
currency_symbols: ^0.0.1+2 copied to clipboard

Currency symbol package

The currency_symbol package allows you to display currency symbols() by supplying the currency codes(i.e NGN, USD, GBP etc)

Installation add currency_symbol to your pubspec.yaml file run pub get in your console/terminal to add it to your project

Import: import 'package:currency_symbols/currency_symbols.dart';

Usage:


String myCurrencySymbol=cSymbol("NGN");

OR Within your UI Text you can add as:


class  extends StatelessWidget {
  const ({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
              child:Text("${cSymbol("GBP")}")
            );
  }
}

currency_symbol #

6
likes
100
pub points
86%
popularity

Publisher

unverified uploader

Currency symbol package

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on currency_symbols