fix: removed useless dependencies
This commit is contained in:
parent
981dce5bfe
commit
48bcf0b1f8
10 changed files with 5 additions and 37 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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}"),
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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!,
|
||||
|
|
|
|||
Reference in a new issue