SectionCard class

A section card. Supply child and optionally a header via title + subtitle + marker / accentColor / icon, or a pre-built header.

Set collapsible to allow the body to be toggled; initiallyExpanded controls the starting state.

Inheritance

Constructors

SectionCard({Key? key, Widget? header, String? title, String? subtitle, SuperMarker marker = SuperMarker.identity, Color? accentColor, IconData? icon, Widget? headerTrailing, required Widget child, EdgeInsetsGeometry? padding, bool collapsible = false, bool initiallyExpanded = true})
const

Properties

accentColor Color?
Explicit accent color for the marker bar and icon container. Takes precedence over marker when both are supplied.
final
child Widget
final
collapsible bool
Whether tapping the header row collapses / expands the body. When false the card is always expanded and no chevron is shown.
final
hashCode int
The hash code for this object.
no setterinherited
A pre-built header. When null and title is set, a SectionHeader is constructed from title / subtitle / marker / accentColor / icon.
final
headerTrailing Widget?
Trailing widget shown at the end of the generated header row.
final
icon IconData?
Optional icon displayed in the marker area of the generated header.
final
initiallyExpanded bool
Initial expansion state used when collapsible is true.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
marker SuperMarker
final
padding EdgeInsetsGeometry?
Interior padding. Defaults to the theme's responsive compact card inset (SuperThemeData.padding.card) when null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle String?
final
title String?
final

Methods

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