Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/kind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ class _KindContentsPageState extends State<KindContentsPage> implements EntityAc
];
}

void popupRowItemSelected(EntityRow entityRow, int index, String value) async {
Future<void> popupRowItemSelected(
EntityRow entityRow, int index, String value) async {
switch (value) {
case 'refresh':
if (entityRow.entity.key == null) {
Expand All @@ -88,7 +89,7 @@ class _KindContentsPageState extends State<KindContentsPage> implements EntityAc
if (newEntity == null) {
return;
}
replaceEntity(index, newEntity);
await replaceEntity(index, newEntity);
break;
}
}
Expand Down Expand Up @@ -151,7 +152,9 @@ class _KindContentsPageState extends State<KindContentsPage> implements EntityAc
child: const Text("View")
),
PopupMenuButton<String>(
onSelected: (String value) => popupRowItemSelected(item, index, value),
onSelected: (String value) {
unawaited(popupRowItemSelected(item, index, value));
},
itemBuilder: createRowPopupItems,
),
],
Expand Down