finalValueWidget method
Implementation
Widget finalValueWidget(InfoModal data, PairInfoTableConfig themeData,
{double? itemSpacing}) {
Widget? valueWidget;
if (data.valuePart is String) {
valueWidget = keyOrValueTitleText(false, data.valuePart,
isValueAlign: isValueAlign(),
isArrow: data.isArrow,
themeData: themeData);
} else {
valueWidget = data.valuePart;
valueWidget ??= Text(
'--',
style: themeData.valueTextStyle.generateTextStyle(),
);
}
if (data.isArrow) {
valueWidget = Row(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Expanded(child: valueWidget),
PhoenixTools.getAssetImage(CardAssets.iconRightArrow),
],
);
}
return Padding(
padding: EdgeInsets.only(left: itemSpacing ?? themeData.itemSpacing),
child: valueWidget,
);
}