This commit is contained in:
lollipopkit
2024-05-14 23:39:17 +08:00
parent 04dfede535
commit ba4abcecfb
25 changed files with 86 additions and 279 deletions

View File

@@ -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,