Fix entity actions on edit scaffold
This commit is contained in:
parent
c98d08f3f7
commit
3eac18929b
|
|
@ -433,8 +433,7 @@ class EditScaffold extends StatelessWidget {
|
||||||
//size: iconSize,
|
//size: iconSize,
|
||||||
//color: color,
|
//color: color,
|
||||||
),
|
),
|
||||||
itemBuilder: (BuildContext context) =>
|
itemBuilder: (BuildContext context) => [
|
||||||
<PopupMenuEntry<EntityAction>>[
|
|
||||||
...actions!
|
...actions!
|
||||||
.map((action) => action == null
|
.map((action) => action == null
|
||||||
? PopupMenuDivider()
|
? PopupMenuDivider()
|
||||||
|
|
@ -448,15 +447,14 @@ class EditScaffold extends StatelessWidget {
|
||||||
.secondary,
|
.secondary,
|
||||||
),
|
),
|
||||||
SizedBox(width: 16.0),
|
SizedBox(width: 16.0),
|
||||||
Text(AppLocalization.of(
|
Text(AppLocalization.of(context)!
|
||||||
context)!
|
|
||||||
.lookup(action.toString())),
|
.lookup(action.toString())),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
value: action,
|
value: action,
|
||||||
))
|
))
|
||||||
|
.whereType<PopupMenuEntry<EntityAction>>()
|
||||||
.toList()
|
.toList()
|
||||||
as Iterable<PopupMenuEntry<EntityAction>>
|
|
||||||
],
|
],
|
||||||
onSelected: (action) =>
|
onSelected: (action) =>
|
||||||
onActionPressed!(context, action),
|
onActionPressed!(context, action),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue