Compare commits

..

No commits in common. "f5f153f692786eed1e11b00504dd807402be77c6" and "d77e732551639d92b1bd4b1996c4f6830b15ac44" have entirely different histories.

2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import 'package:sqflite_common_ffi/sqflite_ffi.dart';
import 'package:path/path.dart'; import 'package:path/path.dart';
import 'package:path_provider/path_provider.dart'; import 'package:path_provider/path_provider.dart';
const bool testing = false; const bool testing = true;
void main() { void main() {
// I see no good explanations of why to use this other package yet, but // I see no good explanations of why to use this other package yet, but

View File

@ -261,7 +261,8 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
if (value!.isEmpty) { if (value!.isEmpty) {
return "Name must be provided."; return "Name must be provided.";
} }
if (!expenses.every((expense) => expense.name != value || expense.id == _id)) { if (!expenses
.every((expense) => expense.name != value)) {
return "Name must be unique, already in use."; return "Name must be unique, already in use.";
} }
return null; return null;