pickDistributorDialog function
dynamic
pickDistributorDialog(
- dynamic distributors
Implementation
pickDistributorDialog(distributors) {
return (BuildContext context) {
return SimpleDialog(
title: const Text('Select push distributor'),
children: distributors
.map<Widget>(
(d) => SimpleDialogOption(
onPressed: () {
Navigator.pop(context, d);
},
child: Text(d),
),
)
.toList());
};
}