Handle very long entity action translation
This commit is contained in:
parent
82ea594913
commit
4be5585ab1
|
|
@ -59,7 +59,11 @@ class ActionMenuButton extends StatelessWidget {
|
||||||
color: Theme.of(context).accentColor,
|
color: Theme.of(context).accentColor,
|
||||||
),
|
),
|
||||||
SizedBox(width: 16.0),
|
SizedBox(width: 16.0),
|
||||||
Text(AppLocalization.of(context).lookup(action.toString()) ?? ''),
|
Expanded(
|
||||||
|
child: Text(
|
||||||
|
AppLocalization.of(context).lookup(action.toString()) ??
|
||||||
|
''),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,10 @@ class EntityActionListTile extends StatelessWidget {
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
leading: Icon(getEntityActionIcon(action)),
|
leading: Icon(getEntityActionIcon(action)),
|
||||||
title: Text(localization.lookup(action.toString())),
|
title: Text(
|
||||||
|
localization.lookup(action.toString()),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (completer != null) {
|
if (completer != null) {
|
||||||
completer.complete(null);
|
completer.complete(null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue