LedgerDayBars class

A month's spending by day as hatched bars (art.day_bars): one bar per day so far, as tall as the money spent that day, on the month's ruler; a bar past cap broken the way an engraver breaks an axis and labelled with its amount from capLabels; marks ring the paydays along the top on a dotted drop; the rest of the month shaded, nothing spent there yet; the grid dotted with its amounts (phoneGrid on a phone, its top line alone by default). 342 by 132 on a phone, 712 by 236 from 1024 (height for another).

LedgerDayBars(values: daily, days: 31, cap: 190, grid: grid)
Inheritance

Constructors

LedgerDayBars({required List<double> values, required int days, double? cap, Map<int, String> capLabels = const {}, List<LedgerChartMark> marks = const [], List<LedgerGridLine> grid = const [], List<LedgerGridLine>? phoneGrid, double? high, LedgerBarTone tone = LedgerBarTone.ink, String month = 'Oct', double? height, double? deskHeight, String semanticLabel = 'Spent per day', Key? key})
A bar for each of the month's values so far, of days.
const

Properties

cap → double?
The height past which a bar is broken; null breaks none.
final
capLabels → Map<int, String>
A broken bar's words by its day (**$1,172.40** Oct 1, rent day).
final
days → int
How many days the month has.
final
deskHeight → double?
The plot's height from 1024.
final
grid → List<LedgerGridLine>
The dotted lines across, with their amounts.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
The plot's height on a phone and from 1024 (a category's bars stand 120 and 268).
final
high → double?
The plot's ceiling; null takes the tallest bar's (or the cap).
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
marks → List<LedgerChartMark>
The days ringed along the top (the paydays).
final
month → String
The month's short name, for the ruler's first label.
final
phoneGrid → List<LedgerGridLine>?
The lines on a phone; null keeps grid's top line alone.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String
What a screen reader says the chart is.
final
tone → LedgerBarTone
How the bars are inked.
final
values → List<double>
Each day's spending so far.
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