ledgerPlotText function
text with its **strong** runs at 500 in the ink, as a plot's labels
set their <b>. Plumbing of the engravings.
Implementation
Widget ledgerPlotText(
String text,
TextStyle style,
Color strong, {
TextAlign? align,
}) {
final parts = text.split('**');
return Text.rich(
TextSpan(
children: [
for (var i = 0; i < parts.length; i++)
if (parts[i].isNotEmpty)
TextSpan(
text: parts[i],
style: i.isOdd
? TextStyle(fontWeight: FontWeight.w500, color: strong)
: null,
),
],
),
style: style,
textAlign: align,
softWrap: false,
);
}