Podium class

Inheritance

Constructors

Podium({Key? key, required Widget firstPosition, required Widget secondPosition, required Widget thirdPosition, double height = 250, double width = 110, double horizontalSpacing = 3, Color color = Colors.blue, Color rankingTextColor = Colors.white, double rankingFontSize = 50, bool is2D = false, bool hideRanking = false, bool showRankingNumberInsteadOfText = false, String firstRankingText = " FIRST ", String secondRankingText = " SEC ", String thirdRankingText = " TH"})
const

Properties

color Color
Defines the color of all 3 of the podium bars.
final
firstPosition Widget
Defines the widget for the first position podium in the center.
final
firstRankingText String
Defines the first position ranking text inside the podium bar. NEEDS LEADING AND TRAILING SPACES TO ENSURE PROPER ALIGNMENT.
final
hashCode int
The hash code for this object.
no setterinherited
height double
Defines the height of the first position podium bar (max height), consequently defining the heights of the other two bars, as a fraction of the defined height.
final
hideRanking bool
Hides both numeric and text ranking inside the podium bars
final
horizontalSpacing double
Horizontal spacing between each of the podium bars
final
is2D bool
Make the podium 2D instead of 3D.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
rankingFontSize double
Defines the font size of the ranking displayed inside a podium bar.
final
rankingTextColor Color
Defines the font color of the ranking displayed inside a podium bar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondPosition Widget
Defines the widget for the second position podium to the left.
final
secondRankingText String
Defines the second position ranking text inside the podium bar. NEEDS LEADING AND TRAILING SPACES TO ENSURE PROPER ALIGNMENT.
final
showRankingNumberInsteadOfText bool
Displays numeric rankings instead of text based rankings
final
thirdPosition Widget
Defines the widget for the third position podium to the right
final
thirdRankingText String
Defines the third position ranking text inside the podium bar. NEEDS LEADING AND TRAILING SPACES TO ENSURE PROPER ALIGNMENT.
final
width double
Defines the width of a podium bar
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.
inherited
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