This error is showed because flutter_stripe 1.3.0 is released. All of current project are still using 1.2.0. So, we can’t run our project no longer. So, this is quick work around solution to keep using with 1.2.0.
Add in app lib for stripe
You need to use in app packages to solve this issue as quick fix