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 forecast 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({double holderHeight: 60.0, double holderBorderRadius: 0.0, Color holderColor: Colors.grey, String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', Color labelTextColor: Colors.blue, double labelTextFontSize: 12.0, FontWeight labelTextFontWeight: FontWeight.normal, String labelTextFontFamily, Color dataTextColor: Colors.black, double dataTextFontSize: 14.0, FontWeight dataTextFontWeight: FontWeight.normal, String dataTextFontFamily, bool showHangingDivider: true, Color hangingDividerColor: Colors.white })
It allows you to create the most configurable ThreeColumnTextBar with customizable default grey background. The labelText and dataText are set to blue and black colors, respectively. Also borderRadius is set to 0 and hangingDivider is visible. The prefix of c1, c2, and c3 represent Column #1, Column #2, and Column #3, respectively. Note: The minimum holder hieght is 60px on any device.
ThreeColumnTextBar.dark({double holderHeight: 60.0, double holderBorderRadius: 0.0, String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', double labelTextFontSize: 10.0, FontWeight labelTextFontWeight: FontWeight.normal, String labelTextFontFamily, double dataTextFontSize: 12.0, FontWeight dataTextFontWeight: FontWeight.normal, String dataTextFontFamily, bool showHangingDivider: true })
Constructs a ThreeColumnTextBar with dark background and effects. The holder backgroundColor is set to black, labelTextColor to yellow, and dataTextColor to white.
ThreeColumnTextBar.deepPurple({String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', double holderHeight: 60.0, double labelTextFontSize: 10.0, FontWeight labelTextFontWeight: FontWeight.normal, String labelTextFontFamily, double dataTextFontSize: 12.0, FontWeight dataTextFontWeight: FontWeight.normal, String dataTextFontFamily, double holderBorderRadius: 0.0, bool showHangingDivider: true })
Constructs a ThreeColumnTextBar with deepPurple background and effects. The holder backgroundColor is set to deep purple, labelTextColor to yellow, and dataTextColor to white.
ThreeColumnTextBar.transparent({double holderHeight: 60.0, double holderBorderRadius: 0.0, String c1LabelText: 'labelText', String c1DataText: 'dataText', String c2LabelText: 'labelText', String c2DataText: 'dataText', String c3LabelText: 'labelText', String c3DataText: 'dataText', double labelTextFontSize: 10.0, FontWeight labelTextFontWeight: FontWeight.normal, String labelTextFontFamily, double dataTextFontSize: 12.0, FontWeight dataTextFontWeight: FontWeight.normal, String dataTextFontFamily, bool showHangingDivider: true })
Constructs a ThreeColumnTextBar with transparent background and effects. The holder backgroundColor is set to transparent, labelTextColor to deep purple accent, dataTextColor to black, and dividerColor to deep purple.

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