nigerian_banks 0.0.1+4 copy "nigerian_banks: ^0.0.1+4" to clipboard
nigerian_banks: ^0.0.1+4 copied to clipboard

outdated

Inspired by https://github.com/ichtrojan/nigerian-banks, https://github.com/natintosh/intl_phone_number_input, this package contain the list of banks in Nigeria and their logo, the widget is highly cu [...]

nigerian_banks #

A simple ( maybe not 😪) 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 😒 or just fork the damn thing 😜)

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 😇
  • Search widget with modes,

Features #

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

Usage #

Constructors #

s/n Constructor
1 Banks

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,
    });
```|


| Parameter                       | Type                   |    Initial Value          |
|---------------------------------|------------------------|---------------------------|
| onInputChanged                  | function(BankModel)    |        null               |
| onSaved                         | function(String)       |        null               |
| onInputValidated                | function(bool)         |        null               |
| focusNode                       | FocusNode              |        null               |
| textFieldController             | TextEditingController  |   TextEditingController() |
| onSubmit                        | Function()             |        null               |
| keyboardAction                  | TextInputAction        |        null               |
| banks                           | List<BankModel>        |        null               |
| textStyle                       | TextStyle              |        null               |
| selectorTextStyle               | TextStyle              |        null               |
| inputBorder                     | InputBorder            |        null               |
| inputDecoration                 | InputDecoration        |        null               |
| initialValue                    | BankModel              |        null               |
| hintText                        | String                 |     Phone Number          |
| selectorButtonOnErrorPadding    | double                 |        24                 |
| maxLength                       | integer                |        15                 |
| isEnabled                       | boolean                |        true               |
| autoFocus                       | boolean                |        false              |
| autoValidateMode                | AutoValidateMode       | AutoValidateMode.disabled |
| errorMessage                    | String                 | Invalid phone number      |
| selectorConfig                  | SelectorConfig         | SelectorConfig()          |
| ignoreBlank                     | boolean                |       false               |
| searchBoxDecoration             | InputDecoration        |        null               |
| bankSelectorScrollControlled    | boolean                |        true               |



# 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
<a href="https://github.com/ELEOS-MAP/nigerian_banks/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=ELEOS-MAP/nigerian_banks" />
</a>

Made with [contributors-img](https://contrib.rocks).

# Dependencies

# Credits

A special thanks to:
<a href="https://github.com/ichtrojan/nigerian-banks/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=ichtrojan/nigerian-banks" />
</a>
for the [nigerian-banks](https://github.com/ichtrojan/nigerian-banks) repo

and to
<a href="https://github.com/natintosh/intl_phone_number_input/graphs/contributors">
   <img src="https://contrib.rocks/image?repo=natintosh/intl_phone_number_input" />
</a>
for the [intl_phone_number_input](https://github.com/natintosh/intl_phone_number_input) repo


Made with [contributors-img](https://contrib.rocks).
4
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Inspired by https://github.com/ichtrojan/nigerian-banks, https://github.com/natintosh/intl_phone_number_input, this package contain the list of banks in Nigeria and their logo, the widget is highly customiseable.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on nigerian_banks