mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 10:25:28 +03:00
stableee
This commit is contained in:
@@ -275,8 +275,14 @@ class _TransferAccountRow extends ConsumerWidget {
|
||||
),
|
||||
);
|
||||
} else {
|
||||
fromAccount =
|
||||
activeAccount ?? (accounts.isNotEmpty ? accounts.first : null);
|
||||
// If no account is explicitly selected and we're on Total Balance
|
||||
// creating a new transfer — show empty, force user to choose
|
||||
if (activeAccount == null && initial == null) {
|
||||
fromAccount = null;
|
||||
} else {
|
||||
fromAccount =
|
||||
activeAccount ?? (accounts.isNotEmpty ? accounts.first : null);
|
||||
}
|
||||
}
|
||||
|
||||
final Account? toAccount = toAccountId != null && accounts.isNotEmpty
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../../core/constants.dart';
|
||||
import '../../../shared/models/transaction.dart';
|
||||
|
||||
class SubmitButton extends StatelessWidget {
|
||||
@@ -21,7 +22,9 @@ class SubmitButton extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final typeColor = type == TransactionType.income
|
||||
final typeColor = type == TransactionType.transfer
|
||||
? AppColors.accent
|
||||
: type == TransactionType.income
|
||||
? const Color(0xFF4CAF8C)
|
||||
: const Color(0xFFE05C6B);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user