Coin row

A coin in a list: what it is and how much you hold, the day as a line, what it is worth and how the day went.

Specs

Every value is a token from Foundations. The names match Figma and the Flutter file.

Row
64 tall at least, 12 left and right, 8 above and below, 12 between the parts (gap/stack), radius 20 (radius/card) for the press and the focus ring
In a list
the row is 12 wider than its content on each side, so it starts 8 from the screen edge (layout/sheet-inset) and the avatar and the value line up with the 20 gutter
Avatar
40, round
Name
Moonshot/Body/Strong over the holding in Moonshot/Caption, text/secondary. Both cut with an ellipsis
Sparkline
64 by 28, in a fixed slot
Value
an 80 wide slot, right aligned: the value in Body/Strong over the day's change in Caption, both in tabular figures
Change
an arrow and a percentage in status/success or status/danger
Press
bg/highlight for the whole row, 150ms

Usage

Do

  • Keep the sparkline and the value in their fixed slots, so they line up down the list.
  • Sort by value by default.

Don't

  • Don't add a second action to the row. A tap opens the coin.
  • Don't drop the arrow: colour alone does not say up or down.

Accessibility

  • The whole row is one button named by the coin, its value and its change.
  • The sparkline is hidden from a screen reader; the change is read as up or down and the percentage.
  • Focus: a 2px focus/ring 2px outside the shape, for keyboard and switch control only. Targets are 44pt or more.