CsHelpPanel class

Cloudscape's HelpPanel: the help content shown in the app layout's tools panel, with a header, body text and a footer of related links.

CsHelpPanel(
  header: 'Instances',
  footer: const Text('Related: Launch templates'),
  child: Column(
    crossAxisAlignment: CrossAxisAlignment.start,
    children: [
      CsHelpPanel.paragraph('View and manage your instances.'),
      CsHelpPanel.heading('Instance state'),
      CsHelpPanel.list(const ['Running', 'Stopped']),
    ],
  ),
)

The header uses the panel header font (heading-m, 18/22) above a 1px color-border-panel-header divider; the body is color-text-body-secondary padded with space-panel-side-left/right. The static helpers (heading, paragraph, list, divider, code) reproduce Cloudscape's help panel text styles.

Inheritance

Constructors

CsHelpPanel({Key? key, String? header, Widget? headerWidget, Widget? child, Widget? footer, bool loading = false, String? loadingText})
const

Properties

child → Widget?
The help content (Cloudscape children).
final
Content under a divider, usually a "Learn more" list of links.
final
hashCode → int
The hash code for this object.
no setterinherited
Panel title, usually the page or feature name.
final
headerWidget → Widget?
Custom header in place of header.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loading → bool
Shows a spinner and loadingText instead of the content.
final
loadingText → String?
Defaults to the shared "Loading" string.
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

Static Methods

code(String text) → Widget
Inline monospace text on the code highlight background.
divider() → Widget
A divider between sections (hr), with 24px around it.
heading(String text, {bool first = false}) → Widget
A section heading inside the content (heading-m, 24px above).
list(List<String> items, {bool ordered = false}) → Widget
A bulleted (or numbered) list, indented 20px.
paragraph(String text) → Widget
A paragraph with 12px vertical margins.