currencylistpicker 0.0.2-nullsafety.0
currencylistpicker: ^0.0.2-nullsafety.0 copied to clipboard

Flutter plugin project to pick currency code, will show currency name and ISO currency codes.

Currency List Picker #

Flutter plugin project to pick currency code, will show currency name and ISO currency codes.

Usage #

To use this plugin, add currencylistpicker as a dependency in your pubspec.yaml.

    CurrencyListPicker(
        appBar: AppBar(
          backgroundColor: Colors.blue,
          title: Text('Choose your currency'),
        ),
        
        // if you need custome picker use this
        pickerBuilder: (context, CurrencyCode code){
          return Row(
            children: [
              Text(code.code),
              Text(code.name),
            ],
          );
         },

        // To disable option set to false
        theme: CurrencyListPickerTheme(
            isShowSymbol: true,
            isShowTitle: true,
            isShowCode: true,
            isDownIcon: true,
            showEnglishName: true,
            ),
        // Set default currency code
        initialSelection: 'EUR',
        onChanged: (CurrencyCode code) {
          print(code.name);
          print(code.code);
          print(code.numericCode);
          print(code.minorUnit);
          print(code.symbol);
        },
        // Whether to allow the widget to set a custom UI overlay
        useUiOverlay: true,
        // Whether the currency list should be wrapped in a SafeArea
        useSafeArea: false
        ),

To call feedback or getting data from this widget, you can make function in onChanged

Special Thanks #

I thank contributors of CountryListPick, which was used as reference while developing this library.

1
likes
120
pub points
29%
popularity

Publisher

yantra.cloud

Flutter plugin project to pick currency code, will show currency name and ISO currency codes.

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_web_plugins, intl

More

Packages that depend on currencylistpicker