detailsRow method
Implementation
Column detailsRow(String title, String value, {bool isLast = false}) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: TextStyle(
color: ColorHelper.grey05,
fontSize: 12.dp,
fontWeight: FontWeight.w400,
fontFamily: 'SFProDisplay',
),
),
4.dp.SpaceX,
Row(
children: [
Text(
value,
style: TextStyle(
color: ColorHelper.black03,
fontSize: 12.dp,
fontWeight: title == 'Beneficiary Name'
? FontWeight.w500
: FontWeight.w400,
fontFamily: 'SFProDisplay',
),
),
10.dp.SpaceY,
Image.asset(
'assets/dashboard/ic_copy.png',
width: 20,
color: ColorHelper.primaryColor1,
),
],
),
isLast ? 0.dp.SpaceX : 15.dp.SpaceX,
],
);
}