Skip to content

Commit

Permalink
fix cart screen with navigator pop
Browse files Browse the repository at this point in the history
  • Loading branch information
auguzsto committed Jul 28, 2023
1 parent 60e22ae commit 7ba30b2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/src/views/client/cart/cart_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ class CartScreen extends StatelessWidget {
(index) => cartController.delete(cart[index]['id']),
),
)
.whenComplete(() => Handlers.message(
message: AppConstants.pedidoRealizado,
iconData: Icons.check,
context: context));
.whenComplete(() {
Handlers.message(
message: AppConstants.pedidoRealizado,
iconData: Icons.check,
context: context);
Navigator.of(context).pop();
});
},
child: const Text("Confirmar"),
),
Expand Down

0 comments on commit 7ba30b2

Please sign in to comment.