custom_numeric_pad 0.0.2
custom_numeric_pad: ^0.0.2 copied to clipboard
The Custom NumPad package is a versatile Flutter library designed to seamlessly integrate customizable numeric keypads into various screens, particularly targeting payment and numeric input scenarios. [...]
Custom Numeric Pad Widget #
A Flutter package that provides a customizable numeric pad widget for integration into various screens, such as payment interfaces.
Overview #
The Custom Numeric Pad Widget is designed to offer a customizable numeric pad interface that can be seamlessly integrated into Flutter applications, particularly in scenarios requiring numeric input, such as payment forms.
Features #
- Customizable button dimensions
- Adjustable row and column spacing
- Control over button colors and text style
- Easy integration with TextEditingController
Usage #
To use this widget in your Flutter application, follow these steps:
-
Add the dependency to your
pubspec.yamlfile:dependencies: custom_numeric_pad: ^1.0.0 # Replace with the latest version -
Import the package in your Dart code:
import 'package:custom_numeric_pad/custom_numpad_package.dart'; -
Use the CustomNumPad widget in your UI:
CustomNumPad( buttonHeight: 50, buttonWidth: 70, rowSpacing: 5, columnSpacing: 5, // Add other required parameters for your CustomNumPad widget )
Parameters #
| Parameter | Required | Default | Type | Description |
|---|---|---|---|---|
| buttonHeight | No | 75 | double | Height of the numeric pad buttons |
| buttonWidth | No | 65 | double | Width of the numeric pad buttons |
| rowSpacing | No | 5 | double | Vertical spacing between rows of buttons |
| columnSpacing | No | 5 | double | Horizontal spacing between columns of buttons |
| buttonRadius | No | 0.0 | double | Radius for button corners |
| buttonColor | No | F5F6FA | Color | Background color for buttons |
| bgColor | No | Transparent | Color | Background color for the numeric pad |
| cornerRadius | No | 0.0 | double | Corner radius for the entire numeric pad |
| controller | No | null | TextEditingController? | Controller for the text input field |
| buttonTextStyle | No | TextStyle() | TextStyle | Text style for the numeric pad buttons |
Examples #
-
Customized:
CustomNumPad( buttonHeight: 60, buttonWidth: 120, rowSpacing: 10, columnSpacing: 10, buttonRadius: 20, buttonColor: Colors.red, bgColor: Colors.yellow, // Add other required parameters for your CustomNumPad widget ) -
Basic:
CustomNumPad()
Screenshots #
Here's a visual representation of the CustomNumPad widget in action:
[CustomNumPad Screenshot1] [CustomNumPad Screenshot2]
For more information visit GitHub