webContainer method
Implementation
Widget webContainer(){
double gap = style['hloc']['gap'];
double lvgap = 2;
String change = '${p.mPreKData != null?Tools.toFixed(p.mKData?['close'] - p.mPreKData?['close'], widget.propertys['priceDigits']):"-"}(${p.mPreKData != null?Tools.toFixed(((p.mKData?['close'] - p.mPreKData?['close']) / p.mPreKData?['close']) * 100, 2):"-"}%)';
return
// Container(
// child:
Row(
children: [
Row(
children: [
Text(
'${widget.propertys['i18n']['open']}',
style: style['hloc']['labelTextStyle'],
),
SizedBox(width: lvgap),
Text(
'${Tools.toFixed(p.mKData?['open'], widget.propertys['priceDigits'])}',
style: style['hloc']['valueTextStyle'],
),
],
),
SizedBox(width: gap),
Row(
children: [
Text(
'${widget.propertys['i18n']['high']}',
style: style['hloc']['labelTextStyle'],
),
SizedBox(width: lvgap),
Text(
'${Tools.toFixed(p.mKData?['high'], widget.propertys['priceDigits'])}',
style: style['hloc']['valueTextStyle'],
),
],
),
SizedBox(width: gap),
Row(
children: [
Text(
'${widget.propertys['i18n']['low']}',
style: style['hloc']['labelTextStyle'],
),
SizedBox(width: lvgap),
Text(
'${Tools.toFixed(p.mKData?['low'], widget.propertys['priceDigits'])}',
style: style['hloc']['valueTextStyle'],
),
],
),
SizedBox(width: gap),
Row(
children: [
Text(
'${widget.propertys['i18n']['close']}',
style: style['hloc']['labelTextStyle'],
),
SizedBox(width: lvgap),
Text(
'${Tools.toFixed(p.mKData?['close'], widget.propertys['priceDigits'])}',
style: style['hloc']['valueTextStyle'],
),
],
),
SizedBox(width: gap),
Row(
children: [
Text(
'${widget.propertys['i18n']['changes']}',
style: style['hloc']['labelTextStyle'],
),
SizedBox(width: lvgap),
SizedBox(
// width: getTxtWidth(change, style['hloc']['valueUpTextStyle']),
child: Text(
change,
style: p.mPreKData != null?(p.mKData?['close'] - p.mPreKData?['close']>=0?style['hloc']['valueUpTextStyle']:style['hloc']['valueDownTextStyle']):style['hloc']['valueTextStyle'],
),
)
],
),
SizedBox(width: gap),
Row(
children: [
Text(
'${widget.propertys['i18n']['amp']}',
style: style['hloc']['labelTextStyle'],
),
SizedBox(width: lvgap),
Text(
'${p.mPreKData != null?Tools.toFixed(((p.mKData?['high'] - p.mPreKData?['low']) / p.mPreKData?['close']) * 100, 2):"-"}%',
style: style['hloc']['valueTextStyle'],
),
],
),
SizedBox(width: gap),
Row(
children: [
Text(
'${widget.propertys['i18n']['volume']}',
style: style['hloc']['labelTextStyle'],
),
SizedBox(width: lvgap),
Text(
'${Tools.bigNumWithStr(p.mKData?['volume'],3) }(${Tools.bigNumWithStr(p.mKData?['amo'],3) })',
style: style['hloc']['valueTextStyle'],
),
],
),
],
);
// );
}