0 purchases
currency symbols
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");
copied to clipboard
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")}")
);
}
}
copied to clipboard
currency_symbol #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.