currency_code_to_currency_symbol 0.0.3 copy "currency_code_to_currency_symbol: ^0.0.3" to clipboard
currency_code_to_currency_symbol: ^0.0.3 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 CurrencyToSymbolWidget(
            currencyCode: 'USD',
             textStyle: TextStyle(
              fontSize: 24,
              fontWeight: FontWeight.bold,
              color: Colors.blue,
             ),
           )

       }
    }


9
likes
120
points
893
downloads

Publisher

unverified uploader

Weekly Downloads

Currency code to currency symbol

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on currency_code_to_currency_symbol