smit-happens / lit_bit_app

Flutter application designed to work with a lit-bit activity logger.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display step data in a list view

PatHock opened this issue · comments

End goal

  • Create a list view for daily step count totals

Relevant Info/Links

This could be achieved using a ListTile view.
https://docs.flutter.io/flutter/material/ListTile-class.html

Your Code

An example of a ListTile object (which would represent step totals for one day). Taken from the flutter docs link above.

new ListTile(
  leading: const Icon(Icons.flight_land),
  title: const Text('Trix\'s airplane'),
  subtitle: _act != 2 ? const Text('The airplane is only in Act II.') : null,
  enabled: _act == 2,
  onTap: () { /* react to the tile being tapped */ }
)