task static method
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,
);
}