nigerian_banks

A simple ( maybe not :sleepy:) plugin for adding nigerian banks to your forms..... it's all vibes and inshallah, but it works good ( if it doesn't do what you are looking for, feel free to report an issue :unamused: or just fork the damn thing :stuck_out_tongue_winking_eye:)

Screenshots

What's new

  • Added list of banks and their logo ( it's 39 right now feel free to add more in lib/models/banks_list.dart) and oh don't forget to add logo into assets/images :innocent:
  • Search widget with modes.
  • You can now create your list of banks by assigning a dart BankModel list to the dart this.banks property
  List<BankModel> banks = [BanksModel(name:"EleosBank", slug:"eleos_banks", logo:"https://eleeos.com/dummy.png", code:"281",ussd:"829")];
  Banks(banks:banks);

Features

  • Selector (dropdown, bottom sheet and dialog modes)
  • Search

Usage

Constructors

s/nConstructor
1Banks

Available Parameters

 Banks({
          Key key,
          @required this.onInputChanged,
          this.onInputValidated,
          this.onSubmit,
          this.onFieldSubmitted,
          this.validator,
          this.onSaved,
          this.textFieldController,
          this.keyboardAction,
          this.initialValue,
          this.hintText = 'Select Bank',
          this.errorMessage = 'Select a bank from the list',
          this.selectorButtonOnErrorPadding = 24,
          this.maxLength = 15,
          this.isEnabled = true,
          this.showLogo = true,
          this.autoFocus = false,
          this.autoFocusSearch = false,
          this.autoValidateMode = AutovalidateMode.disabled,
          this.ignoreBlank = false,
          this.bankSelectorScrollControlled = true,
          this.locale,
          this.textStyle,
          this.selectorTextStyle,
          this.inputBorder,
          this.inputDecoration,
          this.searchBoxDecoration,
          this.focusNode,
          this.banks,
          this.selectorConfig
  });
  enum BankInputSelectorType { DROPDOWN, BOTTOM_SHEET, DIALOG }
  BankModel({ this.name, this.slug, this.code, this.ussd, this.logo, });
  SelectorConfig({
      this.selectorType = BankInputSelectorType.BOTTOM_SHEET,
      this.showLogo = true, this.showCode,
      this.backgroundColor = Colors.white,
      this.bankComparator,
    });

Parameters

ParameterTypeInitial Value
onInputChangedfunction(BankModel)null
onSavedfunction(String)null
onInputValidatedfunction(bool)null
focusNodeFocusNodenull
textFieldControllerTextEditingControllerTextEditingController()
onSubmitFunction()null
keyboardActionTextInputActionnull
banksListnull
textStyleTextStylenull
selectorTextStyleTextStylenull
inputBorderInputBordernull
inputDecorationInputDecorationnull
initialValueBankModelnull
hintTextStringPhone Number
selectorButtonOnErrorPaddingdouble24
maxLengthinteger15
isEnabledbooleantrue
autoFocusbooleanfalse
autoValidateModeAutoValidateModeAutoValidateMode.disabled
errorMessageStringInvalid phone number
selectorConfigSelectorConfigSelectorConfig()
ignoreBlankbooleanfalse
searchBoxDecorationInputDecorationnull
bankSelectorScrollControlledbooleantrue

Contributions

If you encounter any problem or the library is missing a feature feel free to open an issue. Feel free to fork, improve the package and make pull request.

Contributors

Made with contributors-img.

Dependencies

Credits

A special thanks to: for the nigerian-banks repo

and to for the intl_phone_number_input repo

Made with contributors-img.

Libraries

bank_model
bank_search_list_widget
banks
banks_list
getBanks
item
nigerian_banks
selector_config
test_helper