CsSplitPanel class

Cloudscape's SplitPanel: a secondary panel, usually details of the selected table item, shown under or beside the main content of a CsAppLayout.

CsAppLayout(
  content: const Text('Instances table'),
  splitPanel: const CsSplitPanel(
    header: 'i-0abc123',
    child: Text('Instance details'),
  ),
)

Inside an app layout the panel gets its open state, position and size from the layout and offers a resize handle, a preferences button (bottom or side) and a close button. On phones (at or below 688px) it always docks at the bottom and opens full screen. Used on its own it renders as an open bottom panel that collapses into its header.

Inheritance

Constructors

CsSplitPanel({Key? key, required Widget child, String? header, Widget? headerWidget, Widget? headerActions, String? headerDescription, Widget? headerInfo, Widget? headerBefore, CsSplitPanelCloseBehavior closeBehavior = CsSplitPanelCloseBehavior.collapse, bool hidePreferencesButton = false, CsSplitPanelI18nStrings i18nStrings = const CsSplitPanelI18nStrings(), String? semanticLabel})
const

Properties

child → Widget
The panel content (Cloudscape children).
final
closeBehavior → CsSplitPanelCloseBehavior
final
hashCode → int
The hash code for this object.
no setterinherited
Panel title.
final
headerActions → Widget?
Buttons next to the title.
final
headerBefore → Widget?
Content before the title, such as a status icon.
final
headerDescription → String?
Text under the title.
final
headerInfo → Widget?
An info link after the title.
final
headerWidget → Widget?
Custom title in place of header.
final
hidePreferencesButton → bool
final
i18nStrings → CsSplitPanelI18nStrings
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Name of the panel region. Defaults to header.
final

Methods

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