build2LineCell function
Implementation
Widget build2LineCell({
required String label,
required String value,
Color labelColor = MiniColor.black,
String? smallLabel,
Color smallColor = MiniColor.black,
Color valueColor = MiniColor.black,
VoidCallback? voidCallback,
}) {
return Ink(
child: InkWell(
onTap: voidCallback,
child: Container(
alignment: Alignment.center,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
label,
style: TextStyle(color: labelColor, fontSize: 15),
overflow: TextOverflow.ellipsis,
),
const SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
Text(
value,
style: TextStyle(
color: valueColor,
fontWeight: FontWeight.bold,
fontSize: 16),
overflow: TextOverflow.ellipsis,
),
Text(
smallLabel ?? '',
style: TextStyle(color: smallColor, fontSize: 14),
overflow: TextOverflow.ellipsis,
),
],
),
],
),
),
),
);
}