Closed mortal-ghost closed 2 years ago
Will review after #95 is merged.
@mortal-ghost, please merge the master branch of my repository in this PR
Thanks, @mortal-ghost! Awesome work! This was a hard-to-spot bug. A few minor changes -
- There are other
SnackBar
s inproduct_details.dart
that need these changes.- You will need to do the same for the
Favourite
screen (again, justSnackBar
s and probably thecontext
), plus remove theMaterialApp
parent widget from that screen.
I have made the changes. On the product_details.dart, since the snackbar is displayed on the underlying Scaffold, Navigator pops the dialog first before displaying the snackbar. This is inline with the cart checkout.
Program
Issue
Fixes #92
Description
Most of the issues seemed to be created by the _key.currentState.showSnackBar which is replaced by ScaffoldMessenger.of(context).showSnackBar. Issue with confirming an order on dialog was because of the same reason as above but also needed the context of the underlying Scaffold rather than the dialog context which is declared as a new variable. The issues mentioned are resolved, I did not face any other issues.
Type of change
You can write manually also
Checklist: