SaleByWalletScreen class

Main screen for wallet-based payment transactions.

Provides a comprehensive interface for processing payments through various wallet methods including QR code scanning, phone number entry, and alias-based payments. Includes amount entry, currency selection, and real-time transaction monitoring.

Features

  • Multiple wallet payment methods (QR, Phone, Alias)
  • Amount and currency input with validation
  • Terminal selection for merchants with multiple terminals
  • Real-time countdown timer for transaction completion
  • Transaction status monitoring and callbacks
  • Responsive UI with proper keyboard handling

Example:

SaleByWalletScreen(
  transactionId: 'txn_123',
  countDownInSeconds: 300,
  onPayCallback: (result) => handlePaymentResult(result),
  onCountComplete: (result) => handleTimeout(result),
  getTransactionFunction: (id) => fetchTransaction(id),
  log: (message) => logEvent(message),
)
Inheritance

Constructors

SaleByWalletScreen.new({Key? key, required GetTransactionFunction getTransactionFunction, required OnPayCallback onPayCallback, required OnPayCallback onCountComplete, required String transactionId, required int countDownInSeconds, EventCallback? log})
const

Properties

countDownInSeconds int
final
getTransactionFunction GetTransactionFunction
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
log EventCallback?
final
onCountComplete OnPayCallback
final
onPayCallback OnPayCallback
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionId String
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SaleByWalletScreen>
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