sourceFormatIconStrip function
- required Iterable<
RohdSourceFormat> formats, - SourceFormatIconBuilder iconBuilder = sourceFormatMenuIcon,
- double size = 16,
- double gap = 3,
Compact strip of source/output format icons for trace-picker menu rows.
Implementation
Widget sourceFormatIconStrip({
required Iterable<RohdSourceFormat> formats,
SourceFormatIconBuilder iconBuilder = sourceFormatMenuIcon,
double size = 16,
double gap = 3,
}) {
final formatList = formats.toList(growable: false);
return Row(
mainAxisSize: MainAxisSize.min,
children: [
for (var i = 0; i < formatList.length; i++) ...[
if (i > 0) SizedBox(width: gap),
iconBuilder(formatList[i], size: size),
],
],
);
}