Commit 65f4e30
authored
perf(add_category): autoselect category type based on transaction type (#402)
* perf(add_category): autoselect category type based on transaction type
When creating a new category, the category type dropdown is preselected
based on the transaction type (income or expense).
- Import transaction provider in add_category
- Read transaction type using the transaction provider
- Default category type using transactionToCategoryProvider, or set to 'expense' if null
- Remove redundant "hide income" logic in initial setup
Ref: #390
* Remove unuseful comments
* Fix dart format1 parent fa3d533 commit 65f4e30
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | | - | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
0 commit comments