Transaction rules

This commit is contained in:
Hillel Coren 2022-11-22 16:44:49 +02:00
parent bea316e1e0
commit 01922a09db
1 changed files with 17 additions and 1 deletions

View File

@ -161,6 +161,7 @@ class _TransactionRuleEditState extends State<TransactionRuleEdit> {
style: Theme.of(context).textTheme.caption, style: Theme.of(context).textTheme.caption,
), ),
), ),
SizedBox(width: 100),
], ],
), ),
SizedBox(height: 4), SizedBox(height: 4),
@ -179,10 +180,25 @@ class _TransactionRuleEditState extends State<TransactionRuleEdit> {
Expanded( Expanded(
child: Text(rule.value), child: Text(rule.value),
), ),
SizedBox(
width: 100,
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
IconButton(
onPressed: () {
viewModel.onChanged(
transactionRule.rebuild((b) =>
b..rules.remove(rule)));
},
icon: Icon(Icons.clear))
],
),
),
], ],
), ),
), ),
SizedBox(height: 16), SizedBox(height: 8),
], ],
OutlinedButton( OutlinedButton(
onPressed: () async { onPressed: () async {