From fe7981d2847a41fd42162fd58d5b79beaa3bd60b Mon Sep 17 00:00:00 2001 From: Chen Date: Sun, 20 Feb 2022 12:29:55 +0800 Subject: [PATCH] set default transaction type to expense --- lib/view/transaction_edit.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view/transaction_edit.dart b/lib/view/transaction_edit.dart index 0fc0075..07297f8 100644 --- a/lib/view/transaction_edit.dart +++ b/lib/view/transaction_edit.dart @@ -158,7 +158,7 @@ class TransactionEditState extends State { } Widget _txTypeSelect() { - return SingleChoiceHolder([INCOME, EXPENSE], _tx.txType ?? INCOME, + return SingleChoiceHolder([INCOME, EXPENSE], _tx.txType ?? EXPENSE, (choice) { setState(() { _tx.txType = choice;