Fix transaction amount width in list
This commit is contained in:
parent
e1247f3bdb
commit
f7cf04aa86
|
|
@ -636,6 +636,11 @@ class SettingsSearch extends StatelessWidget {
|
||||||
return ScrollableListView(children: [
|
return ScrollableListView(children: [
|
||||||
for (var parts
|
for (var parts
|
||||||
in sections.map((section) => section.split('#').toList()))
|
in sections.map((section) => section.split('#').toList()))
|
||||||
|
if (filter.isEmpty ||
|
||||||
|
localization
|
||||||
|
.lookup(parts[1])
|
||||||
|
.toLowerCase()
|
||||||
|
.contains(filter.toLowerCase()))
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(localization.lookup(parts[1])),
|
title: Text(localization.lookup(parts[1])),
|
||||||
leading: Padding(
|
leading: Padding(
|
||||||
|
|
|
||||||
|
|
@ -152,12 +152,15 @@ class TransactionListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 30),
|
SizedBox(width: 30),
|
||||||
Text(
|
ConstrainedBox(
|
||||||
|
constraints: BoxConstraints(minWidth: 100),
|
||||||
|
child: Text(
|
||||||
formatNumber(transaction.amount, context,
|
formatNumber(transaction.amount, context,
|
||||||
currencyId: transaction.currencyId),
|
currencyId: transaction.currencyId),
|
||||||
style: textStyle,
|
style: textStyle,
|
||||||
textAlign: TextAlign.end,
|
textAlign: TextAlign.end,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
SizedBox(width: 25),
|
SizedBox(width: 25),
|
||||||
EntityStatusChip(entity: transaction),
|
EntityStatusChip(entity: transaction),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue