ComicSplash class

A page's opening panel: a scene or a picture running to the contour, a narration caption, a big outlined title, one burst, and a bar of facts along its foot. art fills it: a ComicDrawing, a ComicMedia, or a ComicArtBand. titleHigh sets the title up on action lines with figure at its side and a balloon from the author. In a compact panel on a phone it becomes a band of about 130 lp with the title and a small burst, and drops the facts and the rest: the page's job then shows on the first screen. On a desktop compact keeps all of it at about 380 lp, not 540, so the panels beside it don't end on blank paper.

ComicSplash(title: 'The long weekend', caption: 'Meanwhile, by the lake', art: ComicArtBand(ground: 2, leading: Icon(ComicGlyphs.house)), burst: const ComicCoverBurst('23', over: 'In', under: 'days!'), facts: const [('162 km', 'by road'), ('Sleeps 6', 'three rooms')])
Inheritance

Constructors

ComicSplash({Key? key, required String title, Widget? art, String? caption, IconData? captionIcon, String? note, ComicCoverBurst? burst, List<(String, String)> facts = const [], bool factsCentred = false, ComicSplashLayout layout = ComicSplashLayout.titleLow, Widget? figure, String? sfx, Widget? balloon, bool compact = false, double? heroSize})
Creates a ComicSplash.
const

Properties

art → Widget?
art: a caller-supplied illustration or image widget. figure: the primary printed figure. balloon: draws the words inside a speech balloon.
final
balloon → Widget?
art: a caller-supplied illustration or image widget. figure: the primary printed figure. balloon: draws the words inside a speech balloon.
final
burst → ComicCoverBurst?
The optional burst displayed beside the main content.
final
caption → String?
caption: the optional narration caption. note: secondary explanatory text. sfx: the optional printed sound effect.
final
captionIcon → IconData?
An optional glyph beside the narration caption.
final
compact → bool
Its short form, for a page where the job comes first: a band on a phone, a lower panel on a desktop.
final
facts → List<(String, String)>
Supporting facts displayed beside the main content.
final
factsCentred → bool
Centers the supporting facts in their available width.
final
figure → Widget?
art: a caller-supplied illustration or image widget. figure: the primary printed figure. balloon: draws the words inside a speech balloon.
final
hashCode → int
The hash code for this object.
no setterinherited
heroSize → double?
A title's size on a desktop, if the words want less than the hero's.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layout → ComicSplashLayout
The arrangement used by the composition.
final
note → String?
caption: the optional narration caption. note: secondary explanatory text. sfx: the optional printed sound effect.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sfx → String?
caption: the optional narration caption. note: secondary explanatory text. sfx: the optional printed sound effect.
final
title → String
The primary heading.
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