Open suhaib-raadan opened 1 year ago
Hello @suhaib-raadan can you share more details ? (code example, screenshots...)
@suhaib-raadan you are calling toast when the actual context of the widget is no longer mounted you can use condition like
if(context.mounted){
// show toast
}
@suhaib-raadan you are calling toast when the actual context of the widget is no longer mounted you can use condition like
if(context.mounted){ // show toast }
Yeah, I found this issue as well, when the toast widget auto dismiss if you click the widget it will report this error, but it don't appear everytime
should modify the 333 line of 《cherry_toast.dart》
if(mounted){ Navigator.maybePop(context); }
Checkout the new version 1.2.1 contains the bug fix https://pub.dev/packages/cherry_toast
why this happen sometimes in my app