Correct column widths
This commit is contained in:
parent
3c1f94774d
commit
7678b5127b
|
|
@ -276,15 +276,8 @@ class _EntityListState extends State<EntityList> {
|
||||||
'custom', entityType.snakeCase);
|
'custom', entityType.snakeCase);
|
||||||
label = state.company.getCustomFieldLabel(key);
|
label = state.company.getCustomFieldLabel(key);
|
||||||
}
|
}
|
||||||
var minWidth = kTableColumnWidthMin;
|
|
||||||
if (field == ProductFields.description) {
|
|
||||||
minWidth *= 4;
|
|
||||||
}
|
|
||||||
return DataColumn(
|
return DataColumn(
|
||||||
label: Container(
|
label: Container(
|
||||||
constraints: BoxConstraints(
|
|
||||||
minWidth: minWidth,
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
label,
|
label,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue