CsContentLayout class
Cloudscape's ContentLayout: the page frame inside the app layout's
content area, with notifications, breadcrumbs, a page header and the
page content.
CsContentLayout(
headerVariant: CsContentLayoutHeaderVariant.highContrast,
header: const CsHeader(variant: CsHeaderVariant.h1, title: 'Distributions'),
child: const CsContainer(child: Text('d111111abcdef8')),
)
The header area gets its own background (headerVariant high contrast
or headerBackgroundStyle); the content then overlaps the bottom of
that background by space-dark-header-overlap-distance (36px), unless
disableOverlap. Inside a CsAppLayout the background reaches the edges
of the content area.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CsContentLayout
Constructors
- CsContentLayout({Key? key, Widget? child, Widget? header, CsContentLayoutHeaderVariant headerVariant = CsContentLayoutHeaderVariant.defaultVariant, CsHeaderBackgroundBuilder? headerBackgroundStyle, double? maxContentWidth, bool disableOverlap = false, Widget? secondaryHeader, Widget? breadcrumbs, Widget? notifications, bool defaultPadding = false})
-
const
Properties
-
Breadcrumbs above the header, for pages outside an app layout.
final
- child → Widget?
-
The page content (Cloudscape
children).final - defaultPadding → bool
-
Adds the app layout's horizontal content padding and top gap, for
pages that do not sit in a
CsAppLayout.final - disableOverlap → bool
-
Content starts under the header instead of overlapping its background.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
Usually a
CsHeaderwith the h1 variant.final - headerBackgroundStyle → CsHeaderBackgroundBuilder?
-
A custom header background, such as a gradient or an image.
final
- headerVariant → CsContentLayoutHeaderVariant
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxContentWidth → double?
-
Caps and centers the header and content width.
final
- notifications → Widget?
-
Flash messages above the header, for pages outside an app layout.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryHeader → Widget?
-
Content next to the header, such as a summary container. Sits at the
end of the header on wide screens and under it at or below 688px.
final
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