medal_table 3.0.0
medal_table: ^3.0.0 copied to clipboard
A medal table showing ranking. It can be made into a table with different information by changing the settings
3.0.0 #
Breaking change. The table now takes an
itemslist instead of the three fixedfirstItem/secondItem/thirdItemparameters, and the public API is now exported from a singlepackage:medal_table/medal_table.dartbarrel.
Added #
- Dynamic rows — pass any number of items via
items: List<TableItemModel>. The top three ranks get gold/silver/bronze medals; the rest get a numbered badge. - Auto sorting —
sortByValue(withdescending) ranks rows for you. - Multiple value columns —
valueTitles+TableItemModel.values. - Row highlighting via
TableItemModel.highlightColor. - Alternating row colors via
oddRowColor/evenRowColor. - Trend indicators —
showTrend+TableItemModel.trend(up/down/same). - Customizable medal colors via
medalColors. - Configurable column widths —
leadingFlex/labelFlex/valueFlex. - Scrollable body with a fixed header via
maxHeight. rowSpacing,rowDecorationanditemPaddingstyling options.- Ripple feedback on tappable rows (
InkWell) andSemanticsfor accessibility. - Widget and unit tests.
Changed #
TableItemModelis now immutable with aconstconstructor and gainedcopyWith, value equality (==/hashCode) andtoString.- Restructured sources under
lib/src/; import the barrel instead of internal paths.
Removed #
- The mutable global
defaultMedalLeadinglist (replaced bymedalColors).
2.0.1 #
- Updated readme and example
2.0.0 #
- Updated model
1.0.4 #
- UI improvements
1.0.3 #
- Header improvements
1.0.2 #
- Header bug fixed
1.0.1 #
- Package usage example added
1.0.0 #
- Stable version released and bugs fixed
0.0.1 #
- First initial release.