ComicPanel class

The panel: a 3 px square contour on a fill, with an optional caption in its corner. Every box on a page is one of these. It takes the height its tier gives it, and its child grows to fill that. Children: anything. bleed takes away the inside, for art that runs to the contour. compact asks a star inside for its short form on a phone.

ComicPanel(caption: 'Coming up', captionIcon: ComicGlyphs.calendar, child: ComicListTile(isFirst: true, title: 'Fri 4 Dec'))
Inheritance

Constructors

ComicPanel({Key? key, ComicStyle? style, Widget? child, String? caption, IconData? captionIcon, ComicSpeaker captionTone = ComicSpeaker.narrator, ComicPanelFill ground = ComicPanelFill.plain, bool bleed = false, EdgeInsetsGeometry? padding, bool compact = false, bool shrinkWrap = false, VoidCallback? onPressed, String? label, bool? selected, FocusNode? focusNode, bool autofocus = false})
Creates a ComicPanel.
const

Properties

autofocus → bool
Whether the part asks for the focus when it first appears.
final
bleed → bool
bleed: allows content to reach the frame's inside edges. compact: uses the compact form of the composition.
final
caption → String?
The optional narration caption.
final
captionIcon → IconData?
An optional glyph beside the narration caption.
final
captionTone → ComicSpeaker
The caption's semantic surface treatment.
final
child → Widget?
Content placed inside this widget.
final
compact → bool
bleed: allows content to reach the frame's inside edges. compact: uses the compact form of the composition.
final
focusNode → FocusNode?
The caller's focus node, if any; the part makes its own when null.
final
ground → ComicPanelFill
The background treatment behind this content.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
What a screen reader says of a pressable panel.
final
onPressed → VoidCallback?
Called when activated; null disables the action.
final
padding → EdgeInsetsGeometry?
Space between the content and its boundary.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool?
The selection state of a selectable panel; null omits that state.
final
shrinkWrap → bool
Hugs the content of a captionless panel, for compact control surfaces.
final
style → ComicStyle?
Per-state frame and content style, above cardTheme.
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.
override
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