availableBalanceWidget method
Implementation
Column availableBalanceWidget(String title, String value) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: TextStyle(
height: 0.2,
color: ColorHelper.black01,
fontSize: 10.dp,
fontWeight: FontWeight.w400,
fontFamily: 'SFProDisplay'),
),
4.dp.SpaceX,
Row(
children: [
RichText(
text: TextSpan(
text: value,
style: TextStyle(
color: ColorHelper.primaryColor1,
fontWeight: FontWeight.w600,
fontSize: 30.dp),
children: <TextSpan>[
TextSpan(
text: ' Miles',
style: TextStyle(
color: ColorHelper.black01,
fontWeight: FontWeight.w600,
fontFamily: 'SFProDisplay',
fontSize: 16.dp),
),
],
),
),
Spacer(),
Image.asset('assets/dashboard/ic_neo_v2.png', width: 30.dp),
],
),
16.dp.SpaceX,
],
);
}