Currency Pick

Description

currency_pick is a Flutter package that allows users to select currencies easily. It provides a user-friendly dropdown or dialog interface to pick a currency, returning details like currency name, symbol, and code.

Features

  • List of global currencies
  • Currency name, symbol,decimal_digits,number,name_plural and code
  • Customizable UI
  • Lightweight and easy to integrate

Images

Installation

Add the following dependency to your pubspec.yaml:

dependencies:
  currency_pick: latest_version

Then run:

flutter pub get

Usage

Import the package:

import 'package:currency_pick/currency_pick.dart';

Example Usage

CustomCurrency(
initialValue: "INR",
onSaved: (value) {
setState(() {
totalValueObj=value;
});
},
)

Customization

You can customize the appearance using optional parameters:

CustomCurrency(
initialValue: "INR",
onSaved: (value) {
setState(() {
totalValueObj=value;
});
},
appBar: AppBar(title: Text("Select Currency"),),
boxDecoration: BoxDecoration(color: Colors.red),
countryTextStyle: TextStyle(),
symbolTextStyle: TextStyle(),
)
);

GitHub Link

Android Version 11 Issue

If some currency symbols are not supported in Android version 11, you can use the following font family to override the issue:

TextStyle(
fontFamily: 'NotoSans',
);

Contributions

Feel free to contribute by submitting issues or pull requests on GitHub.

License

This package is released under the MIT License.