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,
             ),
           )

       }
    }