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

Currency code to currency symbol

1.Add dependancy

currency_code_to_currency_symbol: 0.0.1

2.Import the package

import 'package:currency_code_to_currency_symbol/currency_code_to_currency_symbol.dart';

Features #

This package receives a currency code for example usd converts it to currency symbol => $ nad returns a text of the symbol

Usage #

import 'package:flutter/material.dart';
import 'package:currency_code_to_currency_symbol/currency_code_to_currency_symbol.dart'; // Adjust the import path as necessary
// You have the flexibility to directly use the getCurrencySymbol function if you only need the symbol as a String
 String symbol = getCurrencySymbol("USD");
//if you wanna use it as a text:
class MyApp extends StatelessWidget {

    @override
    Widget build(BuildContext context) {
      return Text(
      getCurrencySymbol(currencyCode:'USD'),//or any string
      style: textStyle,//you can style your text
        );
    }
}


9
likes
0
points
893
downloads

Publisher

unverified uploader

Weekly Downloads

Currency code to currency symbol

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on currency_code_to_currency_symbol