task static method

Widget task({
  1. Key? key,
  2. required String title,
  3. String? subtitle,
  4. String? meta,
  5. String? status,
  6. Color? statusColor,
  7. int? done,
  8. int? total,
  9. dynamic icon,
  10. bool selected = false,
  11. VoidCallback? onTap,
})

Heading 1: Extra-large tile for hero headers, primary dashboards, and page titles. Creates a touch-friendly task card for mobile task lists.

A left status strip, a bold title with an optional status chip, an optional subtitle and meta line (e.g. due time), and an optional done / total progress bar. The whole card is at least 72dp tall and tappable via onTap.

TTile.task(
  title: 'SO-10452',
  subtitle: '12 lines ยท 5 items',
  meta: 'Due today 3:00 PM',
  status: 'Picking',
  statusColor: Colors.blue,
  done: 4,
  total: 12,
  onTap: open,
)

Implementation

static Widget task({
  Key? key,
  required String title,
  String? subtitle,
  String? meta,
  String? status,
  Color? statusColor,
  int? done,
  int? total,
  dynamic icon,
  bool selected = false,
  VoidCallback? onTap,
}) {
  return _TTaskTile(
    key: key,
    title: title,
    subtitle: subtitle,
    meta: meta,
    status: status,
    statusColor: statusColor,
    done: done,
    total: total,
    icon: icon,
    selected: selected,
    onTap: onTap,
  );
}