CustomNumPad class

Inheritance

Constructors

CustomNumPad({Key? key, double buttonHeight = 80, double buttonWidth = 95, double rowSpacing = 5, double columnSpacing = 5, TextEditingController? controller, double cornerRadius = 0.0, Color bgColor = Colors.transparent, double buttonRadius = 17, Color buttonColor = const Color(0xffF5F6FA), double buttonBorder = 0.0, Color buttonBorderColor = Colors.transparent, TextStyle buttonTextStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 24, color: Color(0xff005E54), fontFamily: null)})
Creates a CustomNumPad widget. Creates a CustomNumPad widget with customizable parameters.
const

Properties

bgColor Color
The background color of numeric pad.
final
buttonBorder double
The border size of numeric pad buttons.
final
buttonBorderColor Color
The border's color of numeric pad buttons.
final
buttonColor Color
The background color of numeric pad buttons.
final
buttonHeight double
The height of each numeric pad button.
final
buttonRadius double
The button radius for each numeric pad button.
final
buttonTextStyle TextStyle
The text style applied to the numeric pad buttons.
final
buttonWidth double
The width of the numeric pad button.
final
columnSpacing double
Spacing between columns of buttons in the numeric pad.
final
controller TextEditingController?
The controller that manages the input text field.
final
cornerRadius double
The corner radius of entire numeric pad.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
rowSpacing double
Spacing between rows of buttons in numeric pad.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CustomNumPad>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited