mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt.
This commit is contained in:
@@ -22,9 +22,8 @@ class PopupMenu<T> extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return PopupMenuButton<T>(
|
||||
itemBuilder: (_) => items
|
||||
.map((e) => PopupMenuItem(value: e, child: builder(e)))
|
||||
.toList(),
|
||||
itemBuilder: (_) =>
|
||||
items.map((e) => PopupMenuItem(value: e, child: builder(e))).toList(),
|
||||
onSelected: onSelected,
|
||||
initialValue: initialValue,
|
||||
padding: padding,
|
||||
|
||||
Reference in New Issue
Block a user