BottomControls class

Bottom control bar for CloudPos list screens (Stage 2.e).

Composes a ButtonSecondary refresh button (flex: 1) and a ButtonPrimary load-more / action button (flex: 6) in a Row, matching the manageControls() layout from the merchant-app linked_devices_page.dart.

Optionally shows a full-width retry ButtonPrimary instead of the normal refresh + load-more row when showRetry is true.

All theming uses ThemeSettings.colorPalette via the CloudPos button clones — no Applied* extensions.

See also:

  • CPOS-UI-SPEC_001 Section 8 (Bottom Control Theme Mapping)
  • CPOS-UI-REF_002 Section 4 (Bottom Action Bar visual reference)
Inheritance

Constructors

BottomControls({Key? key, dynamic onRefresh(BuildContext context)?, dynamic onPrimaryAction(BuildContext context)?, dynamic onRetry(BuildContext context)?, String primaryActionText = 'Load more', String retryText = 'Retry', IconData refreshIcon = Icons.refresh, bool primaryActionDisabled = false, bool showRetry = false, bool showControls = true, String? refreshSemanticsIdentifier, String? refreshSemanticsLabel, String? primaryActionSemanticsIdentifier, String? primaryActionSemanticsLabel, String? retrySemanticsIdentifier, String? retrySemanticsLabel, CloudPosDisplaySize? formFactor})
const

Properties

formFactor CloudPosDisplaySize?
Optional form factor override.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPrimaryAction → dynamic Function(BuildContext context)?
Callback invoked when the primary action button is tapped.
final
onRefresh → dynamic Function(BuildContext context)?
Callback invoked when the refresh button is tapped.
final
onRetry → dynamic Function(BuildContext context)?
Callback invoked when the retry button is tapped.
final
primaryActionDisabled bool
When true, the primary action button is disabled (e.g. no more items).
final
primaryActionSemanticsIdentifier String?
Semantics identifier for the primary action button.
final
primaryActionSemanticsLabel String?
Semantics label for the primary action button.
final
primaryActionText String
Label for the primary action button. Defaults to 'Load more'.
final
refreshIcon IconData
Icon shown on the refresh ButtonSecondary. Defaults to Icons.refresh.
final
refreshSemanticsIdentifier String?
Semantics identifier for the refresh button.
final
refreshSemanticsLabel String?
Semantics label for the refresh button.
final
retrySemanticsIdentifier String?
Semantics identifier for the retry button.
final
retrySemanticsLabel String?
Semantics label for the retry button.
final
retryText String
Label for the retry button. Defaults to 'Retry'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showControls bool
When true, the normal refresh + primary-action row is displayed. Typically true for initial, loading, and loaded states.
final
showRetry bool
When true, a full-width retry button is displayed instead of the refresh + primary-action row.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildControls(BuildContext context) List<Widget>
Builds the list of control widgets.
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