Fixed client being added to two lists

This commit is contained in:
Juan Gilsanz Polo 2022-09-29 23:27:29 +02:00
parent 4bb24b98b5
commit 6401dc5367
5 changed files with 29 additions and 3 deletions

View file

@ -62,10 +62,18 @@ class ClientsFab extends StatelessWidget {
)
);
}
else if (result['result'] == 'error' && result['message'] == 'client_another_list') {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(AppLocalizations.of(context)!.clientAnotherList),
backgroundColor: Colors.red,
)
);
}
else {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(AppLocalizations.of(context)!.clientNotRemoved),
content: Text(AppLocalizations.of(context)!.clientNotAdded),
backgroundColor: Colors.red,
)
);