Open Rijankunwar3691 opened 1 month ago
That's way too much code. Please make a minimal reproducible example.
Generally speaking, this error is expected and a mistake on your end. Chances are you used ref
after an await
without checking context.mounted
Describe the bug StateError (Bad state: Cannot use "ref" after the widget was disposed.)
To Reproduce When i Click the Pay Now button i am getting this issue. if i remove
I am not getting any error. <Please add a small sample to that can be executed to reproduce the problem. As a general rule, 100 lines is the maximum>
Expected behavior Get order details and navigate to payement page if it orderdetail is not empty.
####### code------
onPressed: () async {