build method
Describes the part of the user interface represented by this component.
Implementation
@override
Component build(BuildContext context) {
final st = context.simutilTheme;
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Row(
children: [
Text(
isSelected ? ' ${SimutilIcons.pointer} ' : ' ',
style: st.label,
),
Expanded(
child: Text(label, style: isSelected ? st.selected : st.bold),
),
if (shortcut != null) Text(' [$shortcut] ', style: st.dimmed),
],
),
if (description != null && description!.isNotEmpty)
Text(' $description', style: st.dimmed),
],
);
}