Search code examples
flutterproviderstate-management

Error when add Provider package in flutter app


I want to add Provider package in my flutter app, but has error like follow image:

flutter pub pub add provider

enter image description here

This link don't solve it


Solution

  • I solved it :) The name of your project can not be equal to package name. The name of my project is provider and that is compiler gave an error.