KeypadWidget class
Embeddable keypad widget that can render inline without a Scaffold or Navigator. For full-page mode, use KeypadPage which composes this widget.
When the user taps the confirm button, onResult is called with the entered KeypadResult. The caller decides what to do (e.g. push PayPage, close a bottom-sheet, etc.).
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- KeypadWidget
Constructors
-
KeypadWidget({Key? key, required String currencySymbol, required ValueChanged<
KeypadResult> onResult, Decimal? maxAmount, KeypadPageSettings settings = const KeypadPageSettings(), bool hideConfirmButton = false, KeypadCubit? externalCubit}) -
const
Properties
- currencySymbol → String
-
Currency symbol to display (e.g. 'R', '$').
final
- externalCubit → KeypadCubit?
-
Optional external cubit. When provided, the widget will NOT create
its own BlocProvider — the caller owns the cubit lifecycle.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideConfirmButton → bool
-
When true, the internal confirm button is hidden.
Use this on tablet where an external footer button handles confirm.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxAmount → Decimal?
-
Maximum allowed amount (optional).
final
-
onResult
→ ValueChanged<
KeypadResult> -
Called when the user confirms a valid amount.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → KeypadPageSettings
-
Settings controlling labels, visibility, and layout.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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