add loading when delete api is called
This commit is contained in:
parent
e705b91d1a
commit
1c7b129a1b
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ class MIHMzansiWalletApis {
|
||||||
int idloyalty_cards,
|
int idloyalty_cards,
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
) async {
|
) async {
|
||||||
|
loadingPopUp(context);
|
||||||
var response = await http.delete(
|
var response = await http.delete(
|
||||||
Uri.parse(
|
Uri.parse(
|
||||||
"${AppEnviroment.baseApiUrl}/mzasni-wallet/loyalty-cards/delete/"),
|
"${AppEnviroment.baseApiUrl}/mzasni-wallet/loyalty-cards/delete/"),
|
||||||
|
|
@ -79,6 +80,7 @@ class MIHMzansiWalletApis {
|
||||||
//print("Here4");
|
//print("Here4");
|
||||||
//print(response.statusCode);
|
//print(response.statusCode);
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
|
Navigator.of(context).pop();
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue