fix: Reduce minWidth of ToggleButtons in edit dialog

This commit is contained in:
2025-05-09 00:19:39 +03:00
parent 3931c76623
commit 7f6e608ff1
@@ -209,7 +209,8 @@ class _EditTransactionDialogState extends State<EditTransactionDialog> {
});
},
borderRadius: BorderRadius.circular(12),
constraints: BoxConstraints(minWidth: (MediaQuery.of(context).size.width - 120) / 2, minHeight: 40), // Adjust width for dialog
// ИЗМЕНЕНО: Уменьшена минимальная ширина кнопок
constraints: BoxConstraints(minWidth: (MediaQuery.of(context).size.width - 160) / 2, minHeight: 40), // Adjusted width for dialog
selectedColor: Colors.white,
fillColor: isIncome ? Colors.green.shade400 : Colors.red.shade400,
color: isDark ? Colors.white70 : Colors.black54,