For using bloc library, set the path again and again but I couldn't solve the problem 'command not found flutter', Is there any resolvation to use bloc without terminal?
CodePudding user response:
You probably haven't set your flutter environment path yet.
For Windows: https://docs.flutter.dev/get-started/install/windows#update-your-path
For Mac: https://docs.flutter.dev/get-started/install/macos#get-sdk
CodePudding user response:
In your android studio go to your pubspec.yaml file in the root directory and under the dependencies add bloc as follows
dependencies:
bloc: ^8.1.0
Then there will be an option to run pub get inside android studio Pub get
Or you can open up the terminal from inside android studio and run your commands there