It seems like there might be a conflict or issue with one of your dependencies. Here's how you can resolve it:
Run the following command in your terminal to list all dependencies and their versions:
flutter pub deps
This will give you a tree view of all the dependencies used in your project, including transitive dependencies.
Look for the problematic dependency.
In my case, the issue was caused by the cool_alert
package. Removing it resolved the problem. For others, it might be a different package. You can specifically check for flare_flutter
or any other package you suspect.
Remove or replace the problematic dependency:
Open your pubspec.yaml
file and remove the dependency causing the issue, then run:
flutter pub get
Test your project again.
If removing the dependency isn't feasible, consider replacing it with an alternative package that serves the same purpose or check the GitHub repository/issues section for fixes.
Hope this helps!
Thanks & Regards Akhilesh Goswami [email protected]