ThreeColumnTextBar class

A ThreeColumnTextBar is typically used to display a textual summary bar along the top of the device screen. It has 3 columns marked as c1, c2, and c3. Each column in turn has two fixed rows, wherein, the first row is used to display a label which defines the data that is contained within the second row. The labelText size is smaller than the dataTextSize. Examples where it can be used includes, to display income / expense summary in a Personal Finance Management app, whether forcast for 3 days in a weather app, etc. Keep in mind that it only displays the information using 'text', hence, graphics and other widgets are not supported, as of yet.

Constructors

ThreeColumnTextBar({@required BuildContext context, String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', Color labelTextColor: Colors.blue, Color dataTextColor: Colors.black, ScalePreset scalePreset: ScalePreset.small, Color holderColor: Colors.grey, double holderBorderRadius: 0.0, bool showHangingDivider: true, Color dividerColor: Colors.white })
It allows you to create the most configurable ThreeColumnTextBar with customizable default grey background. Also, by default, the label and data text are blue and black in color respectively, border radius is set to 0.0, and hanging dividers are visible. The prefix of c1, c2, and c3 represent Column #1, Column #2, and Column #3, respectively.
ThreeColumnTextBar.dark({@required BuildContext context, String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', ScalePreset scalePreset: ScalePreset.small, double holderBorderRadius: 0.0, bool showHangingDivider: true })
Constructs a ThreeColumnTextBar with dark background and effects.
ThreeColumnTextBar.deepPurple({@required BuildContext context, String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', ScalePreset scalePreset: ScalePreset.small, double holderBorderRadius: 0.0, bool showHangingDivider: true })
Constructs a ThreeColumnTextBar with deepPurple background and effects.
ThreeColumnTextBar.transparent({@required BuildContext context, String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', ScalePreset scalePreset: ScalePreset.small, double holderBorderRadius: 0.0, bool showHangingDivider: true })
Constructs a ThreeColumnTextBar with transparent background and effects.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
key → Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget. [...]
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug }) String
Returns a string representation of this object.
inherited
toStringDeep({String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }) 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 ==(dynamic other) bool
The equality operator. [...]
inherited