feat: start of pending screen

This commit is contained in:
alzalia1 2025-08-14 00:27:39 +02:00
parent 019a21f00e
commit ee9c4c3801
12 changed files with 425 additions and 67 deletions

View file

@ -16,6 +16,26 @@ class BalViewModel extends ChangeNotifier {
int? id;
Bal? get bal => _bal;
Future<Result<void>> editBal(
int id,
String name,
DateTime start,
DateTime end,
) async {
final result = await _balRepository.editBal(id, name, start, end);
switch (result) {
case Ok():
debugPrint("\n\n\n\nDID EDIT\n\n\n\n");
_bal = result.value;
notifyListeners();
break;
case Error():
debugPrint("\n\n\n\nERROR: ${result.error}");
break;
}
return result;
}
/*
* =================================
* =====[ COMMAND AND LOADING ]=====