menuContent method
Implementation
Widget menuContent(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
for (AOption<TValue> option in filteredOptions) ...<Widget>[
AButton(
text: option.label,
outlined: true,
upperCase: false,
borderColor: Colors.transparent,
textColor: isDarkMode(context)
? Colors.grey.shade100
: Colors.grey.shade800,
textAlign: TextAlign.start,
rowAlignment: MainAxisAlignment.start,
borderRadius: 0,
textStyle: TextStyle(
fontWeight: selectedOption?.value == option.value
? FontWeight.w600
: null,
),
singleLine: true,
onPressed: () {
Navigator.of(context).pop(true);
onChanged(option.value);
},
),
// const Divider(height: 0),
],
],
);
}