fix: removed useless dependencies

This commit is contained in:
Alzalia 2025-08-09 12:11:54 +02:00
parent 981dce5bfe
commit 48bcf0b1f8
10 changed files with 5 additions and 37 deletions

View file

@ -49,7 +49,6 @@ class AddViewModel extends ChangeNotifier {
String lastName,
String contact,
) async {
debugPrint("\n\n\n\n(2) TRANFERRING\n\n\n\n");
final result = await _ownerRepository.addOwner(
firstName,
lastName,
@ -62,9 +61,7 @@ class AddViewModel extends ChangeNotifier {
switch (secondResult) {
case Ok():
debugPrint("\n\n\n${secondResult.value.length}");
_owners = secondResult.value;
debugPrint("\n\n\n${_owners.length}");
_currentOwner = result.value;
notifyListeners();
return Result.ok(result.value);
@ -142,7 +139,7 @@ class AddViewModel extends ChangeNotifier {
);
isLoaded = true;
case Error():
debugPrint("Oupsie daysie, ${result.error}");
break;
}
notifyListeners();

View file

@ -75,8 +75,6 @@ class _AddPageState extends State<AddPage> {
);
break;
case Error():
debugPrintStack();
debugPrint(result.error.toString());
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text("Erreur : ${result.error}"),

View file

@ -1,5 +1,3 @@
import 'dart:ffi';
import 'package:flutter/material.dart';
import 'package:seshat/domain/models/bal.dart';
import 'package:seshat/domain/models/book.dart';

View file

@ -23,7 +23,6 @@ class FormPopup extends StatelessWidget {
child: InkWell(
splashColor: Colors.blue.withAlpha(30),
onTap: () {
debugPrint('Card tapped.');
Navigator.of(context).pop();
showDialog(
context: context,
@ -57,7 +56,6 @@ class FormPopup extends StatelessWidget {
child: InkWell(
splashColor: Colors.blue.withAlpha(30),
onTap: () {
debugPrint('Card tapped.');
Navigator.of(context).pop();
showDialog(
context: context,

View file

@ -154,7 +154,6 @@ class _OwnerPopupState extends State<OwnerPopup> {
if (showNewOwner) {
if (_formKey.currentState!.validate()) {
_formKey.currentState!.save();
debugPrint("\n\n\n\n(1) SENDING REQUEST\n\n\n\n");
await widget.viewModel.addOwner(
firstName!,
lastName!,

View file

@ -16,9 +16,6 @@ class LoginViewModel extends ChangeNotifier {
Future<Result<void>> _login((String, String) credentials) async {
final (username, password) = credentials;
final result = await _authRepository.login(username, password);
if (result is Error<void>) {
debugPrint("Hehe no");
}
return result;
}
}