row method
Convenience for common 2-column usage
Implementation
void row(
String left,
String right, {
bool bold = false,
FontSize size = FontSize.normal,
}) {
// Adjust width allocation to prevent text wrapping for long values
// Gunakan dynamic width berdasarkan font size multiplier
final widthMul = size.getWidthMultiplier();
final baseLabelWidth = 3;
final baseValueWidth = 9;
// Sesuaikan lebar berdasarkan multiplier
final leftWidth = (baseLabelWidth * (5 - widthMul)).round().clamp(2, 8);
final rightWidth = (baseValueWidth * (5 - widthMul)).round().clamp(2, 8);
rowColumns([
col(left, leftWidth, size: size, bold: bold),
col(right, rightWidth, size: size, bold: bold, align: PosAlign.right),
]);
}