#277 filter chip long press menu shows full label
This commit is contained in:
parent
9c61857f9d
commit
04fefd06ba
1 changed files with 12 additions and 8 deletions
|
@ -108,14 +108,18 @@ class AvesFilterChip extends StatefulWidget {
|
||||||
final selectedAction = await showMenu<ChipAction>(
|
final selectedAction = await showMenu<ChipAction>(
|
||||||
context: context,
|
context: context,
|
||||||
position: RelativeRect.fromRect(tapPosition & touchArea, Offset.zero & overlay.size),
|
position: RelativeRect.fromRect(tapPosition & touchArea, Offset.zero & overlay.size),
|
||||||
items: actions
|
items: [
|
||||||
.map((action) => PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: action,
|
child: Text(filter.getLabel(context)),
|
||||||
child: MenuIconTheme(
|
),
|
||||||
child: MenuRow(text: action.getText(context), icon: action.getIcon()),
|
const PopupMenuDivider(),
|
||||||
),
|
...actions.map((action) => PopupMenuItem(
|
||||||
))
|
value: action,
|
||||||
.toList(),
|
child: MenuIconTheme(
|
||||||
|
child: MenuRow(text: action.getText(context), icon: action.getIcon()),
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
if (selectedAction != null) {
|
if (selectedAction != null) {
|
||||||
// wait for the popup menu to hide before proceeding with the action
|
// wait for the popup menu to hide before proceeding with the action
|
||||||
|
|
Loading…
Reference in a new issue