Podium class
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 setter inherited
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.
final inherited
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 setter inherited
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