Compare commits
No commits in common. "f5f153f692786eed1e11b00504dd807402be77c6" and "d77e732551639d92b1bd4b1996c4f6830b15ac44" have entirely different histories.
f5f153f692
...
d77e732551
@ -10,7 +10,7 @@ import 'package:sqflite_common_ffi/sqflite_ffi.dart';
|
||||
import 'package:path/path.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
||||
const bool testing = false;
|
||||
const bool testing = true;
|
||||
|
||||
void main() {
|
||||
// I see no good explanations of why to use this other package yet, but
|
||||
|
@ -261,7 +261,8 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
|
||||
if (value!.isEmpty) {
|
||||
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 null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user