ComicBar class

A bar in a box: its fill true to value of of, its dots on whole device pixels. height up from 18. It takes the width it's given. A zero value is a bare track; a value past the whole fills it. Words go beside it, not on it, unless a ComicStamp: give it a label and it stands under its own head, the label at the start and its figure (the value if left out) at the end, read together.

ComicBar(value: 5, of: 6, ink: ComicBarFill.leading, label: 'Pages inked', figure: '5 of 6')
Inheritance

Constructors

ComicBar({Key? key, required num value, required num of, ComicBarFill ink = ComicBarFill.dots, double height = 22, String? stamp, String? label, String? figure})
Creates a ComicBar.
const

Properties

figure → String?
The figure in its head at the end; the value if left out. Shown only with a label.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
The allocated height in logical pixels.
final
ink → ComicBarFill
The ink treatment used by this figure.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
What the bar measures, in its head at the start.
final
of → num
value: the current value represented by the control or record. of: the total used to normalize the displayed value.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stamp → String?
A word on it: stands just past the fill, or inside it if the track has no room.
final
value → num
value: the current value represented by the control or record. of: the total used to normalize the displayed value.
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