CloudPosSplitLayout class

A two-panel horizontal layout for use in landscape / wide-screen contexts.

Renders a left and right panel side-by-side in a Row, each optionally with its own footer pinned to the bottom of the panel. A VerticalDivider separates the panels.

The layout is intentionally a pure widget — it holds no state and makes no layout decisions itself. Callers pass the correct leftFlex / rightFlex ratio and content for their specific phase.

Panel structure

┌──────────────────┬──────────────────────┐
│  left body       │  right body          │
│  (scrollable)    │                      │
│                  │                      │
├──────────────────┼──────────────────────┤
│  left footer     │  right footer        │
└──────────────────┴──────────────────────┘

See CloudPosPaymentPage for usage in the terminal selection phase.

Inheritance

Constructors

CloudPosSplitLayout({Key? key, required Widget leftBody, Widget? leftFooter, required Widget rightBody, Widget? rightFooter, int leftFlex = 45, int rightFlex = 55, EdgeInsetsGeometry panelPadding = const EdgeInsets.all(16), EdgeInsetsGeometry footerPadding = const EdgeInsets.fromLTRB(16, 0, 16, 16)})
const

Properties

footerPadding EdgeInsetsGeometry
Padding applied inside each panel footer.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftBody Widget
Content of the left panel (e.g. terminal list).
final
leftFlex int
Flex weight of the left panel. Defaults to 45.
final
leftFooter Widget?
Optional footer pinned to the bottom of the left panel.
final
panelPadding EdgeInsetsGeometry
Padding applied inside each panel body.
final
rightBody Widget
Content of the right panel (e.g. terminal detail / progress view).
final
rightFlex int
Flex weight of the right panel. Defaults to 55.
final
rightFooter Widget?
Optional footer pinned to the bottom of the right panel.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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